C# Класс Spring.Data.NHibernate.Support.SessionPerConversationScope

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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