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
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode Description
CloseAll ( ) : void
LazySessionPerConversationHolder ( SessionPerConversationScope owner, IConversationState activeConversation, ICollection allManagedConversation ) : System

Initialize a new instance.

Méthodes protégées

Méthode Description
EnsureInitialized ( ) : void

Create a new session on demand

Private Methods

Méthode Description
CloseConversation ( IConversationState conversation ) : void

Method Details

CloseAll() public méthode

public CloseAll ( ) : void
Résultat void

EnsureInitialized() protected méthode

Create a new session on demand
protected EnsureInitialized ( ) : void
Résultat void

LazySessionPerConversationHolder() public méthode

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