C# Class Spring.Data.NHibernate.Support.SessionPerConversationScope

Inheritance: IDisposable
Datei anzeigen Open project: spring-projects/spring-net Class Usage Examples

Protected Properties

Property Type Description
log ILog

Public Methods

Method Description
Close ( ISessionFactory sessionFactory, ICollection allManagedConversation ) : void

Close the current view's session and unregisters from TransactionSynchronizationManager.

Dispose ( ) : void

NOOP.

Open ( IConversationState activeConversation, ICollection allManagedConversation ) : void

Open a new session or reconect the IConversationState.RootSessionPerConversation in activeConversation. Participating in an existing session registed with TransactionSynchronizationManager is not alowed.

SessionPerConversationScope ( ) : System

Initializes a new instance of the SessionPerConversationScopeSettings class. Uses default values for SessionPerConversationScopeSettings

SessionPerConversationScope ( IInterceptor entityInterceptor, FlushMode defaultFlushMode ) : System

Initializes a new instance of the SessionPerConversationScopeSettings class.

SessionPerConversationScope ( SessionPerConversationScopeSettings settings ) : System

Initializes a new instance of the SessionScope class.

Private Methods

Method Description
DoClose ( ISessionFactory sessionFactory, ICollection allManagedConversation, bool isLogDebugEnabled ) : void
DoOpenSession ( IConversationState conversation ) : void
SetOpen ( bool isOpen ) : void

Sets a flag, whether this scope is in "open" state on the current logical thread.

Method Details

Close() public method

Close the current view's session and unregisters from TransactionSynchronizationManager.
/// /// If start/resume a conversation from a /// when exists a different /// with open registered on /// /// If the holder on , is not a . /// ///
public Close ( ISessionFactory sessionFactory, ICollection allManagedConversation ) : void
sessionFactory ISessionFactory The session factory that on use
allManagedConversation ICollection A list of conversations which the session can be closed or disconnected
return void

Dispose() public method

NOOP.
public Dispose ( ) : void
return void

Open() public method

Open a new session or reconect the IConversationState.RootSessionPerConversation in activeConversation. Participating in an existing session registed with TransactionSynchronizationManager is not alowed.
/// /// If there is another conversation with a with opened /// . /// If attempting to participate in an existing NHibernate /// managed by . /// /// ///
public Open ( IConversationState activeConversation, ICollection allManagedConversation ) : void
activeConversation IConversationState
allManagedConversation ICollection
return void

SessionPerConversationScope() public method

Initializes a new instance of the SessionPerConversationScopeSettings class. Uses default values for SessionPerConversationScopeSettings
public SessionPerConversationScope ( ) : System
return System

SessionPerConversationScope() public method

Initializes a new instance of the SessionPerConversationScopeSettings class.
public SessionPerConversationScope ( IInterceptor entityInterceptor, FlushMode defaultFlushMode ) : System
entityInterceptor IInterceptor Specify the to be set on each session provided by this instance.
defaultFlushMode FlushMode Specify the flushmode to be applied on each session provided by this instance. ///
return System

SessionPerConversationScope() public method

Initializes a new instance of the SessionScope class.
public SessionPerConversationScope ( SessionPerConversationScopeSettings settings ) : System
settings SessionPerConversationScopeSettings An instance holding the scope configuration
return System

Property Details

log protected_oe property

The logging instance.
protected ILog log
return ILog