C# 클래스 Spring.Data.NHibernate.Support.SessionPerConversationScope

상속: IDisposable
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
log ILog

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Close() 공개 메소드

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
리턴 void

Dispose() 공개 메소드

NOOP.
public Dispose ( ) : void
리턴 void

Open() 공개 메소드

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
리턴 void

SessionPerConversationScope() 공개 메소드

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

SessionPerConversationScope() 공개 메소드

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. ///
리턴 System

SessionPerConversationScope() 공개 메소드

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

프로퍼티 상세

log 보호되어 있는 프로퍼티

The logging instance.
protected ILog log
리턴 ILog