Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionHolder Members

SessionHolder overview

Public Instance Constructors

SessionHolder Overloaded. Initializes a new instance of the SessionHolder class.

Public Instance Properties

AnySession Gets the first session based on iteration over the IDictionary storage.
AssignedPreviousFlushMode Gets a value indicating whether the PreviousFlushMode property was set.
Connection Gets or sets the ADO.NET Connection used to create the session.
Deadline (inherited from ResourceHolderSupport) Return the expiration deadline of this object.
DoesNotHoldNonDefaultSession Gets a value indicating whether this SessionHolder does not hold non default session.
HasTimeout (inherited from ResourceHolderSupport) Return whether this object has an associated timeout.
IsEmpty Gets a value indicating whether dictionary of hibernate sessions is empty.
IsOpen (inherited from ResourceHolderSupport) Return wheterh there are still open references to this holder
PreviousFlushMode Gets or sets the previous flush mode.
RollbackOnly (inherited from ResourceHolderSupport) Get or set whether the resource is synchronized with a transaction.
Session Gets the session using the default key
SynchronizedWithTransaction (inherited from ResourceHolderSupport) Mark the resource as synchronized with a transaction.
TimeoutInMillis (inherited from ResourceHolderSupport) Sets the timeout for this object in milliseconds.
TimeoutInSeconds (inherited from ResourceHolderSupport) Sets the timeout for this object in seconds.
TimeToLiveInMilliseconds (inherited from ResourceHolderSupport) Return the time to live for this object in milliseconds.
TimeToLiveInSeconds (inherited from ResourceHolderSupport) Return the time to live for this object in seconds.
Transaction Gets or sets the hibernate transaction.
ValidatedSession Gets the validated session.

Public Instance Methods

AddSessionOverloaded. Adds the session to the dictionary storage using the default key.
Clear Clear the transaction state of this resource holder.
ContainsSession Determines whether the holder the specified session.
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.
GetSession Gets the session given key identifier
GetType (inherited from Object)Gets the Type of the current instance.
GetValidatedSession Gets the session given the key and removes the session from the dictionary storage.
Released (inherited from ResourceHolderSupport) Decrease the reference count by one because the holder has been released.
RemoveSession Removes the session from the dictionary storage for the given key.
Requested (inherited from ResourceHolderSupport) Increase the reference count by one because the holder has been requested.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

SessionHolder Overloaded. Initializes a new instance of the SessionHolder class.

Protected Instance Methods

EnsureInitialized May be overridden in a derived class to e.g. lazily create a session
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

SessionHolder Class | Spring.Data.NHibernate Namespace