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

This sessionHolder creates a session for the active conversation only if it is needed (IConversationState.StartResumeConversation).
Although a NHibernateSession defers creation of db-connections until they are really needed, instantiation a session is still more expensive than using LazySessionHolder.
Inheritance: SessionHolder
Mostrar archivo Open project: spring-projects/spring-net

Public Methods

Method Description
CloseAll ( ) : void
LazySessionPerConversationHolder ( SessionPerConversationScope owner, IConversationState activeConversation, ICollection allManagedConversation ) : System

Initialize a new instance.

Protected Methods

Method Description
EnsureInitialized ( ) : void

Create a new session on demand

Private Methods

Method Description
CloseConversation ( IConversationState conversation ) : void

Method Details

CloseAll() public method

public CloseAll ( ) : void
return void

EnsureInitialized() protected method

Create a new session on demand
protected EnsureInitialized ( ) : void
return void

LazySessionPerConversationHolder() public method

Initialize a new instance.
public LazySessionPerConversationHolder ( SessionPerConversationScope owner, IConversationState activeConversation, ICollection allManagedConversation ) : System
owner SessionPerConversationScope
activeConversation IConversationState
allManagedConversation ICollection
return System