Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

OpenSessionInViewModule Members

OpenSessionInViewModule overview

Public Instance Constructors

OpenSessionInViewModule Constructor Initializes a new instance of the OpenSessionInViewModule class. Creates a SessionScope, but does not yet associate a session with a thread, that is lef to the lifecycle of the request.

Public Instance Properties

DefaultFlushMode (inherited from SessionScope) Gets the flushmode to be applied on each newly created session.
EntityInterceptor (inherited from SessionScope) Get or set the configured EntityInterceptor
IsOpen (inherited from SessionScope) Gets a flag, whether this scope is in "open" state on the current logical thread.
IsParticipating (inherited from SessionScope) Gets a flag, whether this scope manages it's own session for the current logical thread or not.
SessionFactory (inherited from SessionScope) Get or set the configured SessionFactory
SingleSession (inherited from SessionScope) Set whether to use a single session for each request. Default is "true". If set to false, each data access operation or transaction will use its own session (like without Open Session in View). Each of those sessions will be registered for deferred close, though, actually processed at request completion.

Public Instance Methods

Close (inherited from SessionScope) Close the current view's session and unregisters from spring's TransactionSynchronizationManager.
Dispose A do nothing dispose method.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Init Register context handler and look up SessionFactoryObjectName under the application configuration key, Spring.Data.NHibernate.Support.OpenSessionInViewModule.SessionFactoryObjectName if not using the default value (i.e. sessionFactory) and look up the SingleSession setting under the application configuration key, Spring.Data.NHibernate.Support.OpenSessionInViewModule.SingleSession if not using the default value of true.
Open (inherited from SessionScope) Opens a new session or participates in an existing session and registers with spring's TransactionSynchronizationManager.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

log (inherited from SessionScope) The logging instance.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

OpenSessionInViewModule Class | Spring.Data.NHibernate.Support Namespace