C# 클래스 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.
상속: SessionHolder
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
CloseAll ( ) : void
LazySessionPerConversationHolder ( SessionPerConversationScope owner, IConversationState activeConversation, ICollection allManagedConversation ) : System

Initialize a new instance.

보호된 메소드들

메소드 설명
EnsureInitialized ( ) : void

Create a new session on demand

비공개 메소드들

메소드 설명
CloseConversation ( IConversationState conversation ) : void

메소드 상세

CloseAll() 공개 메소드

public CloseAll ( ) : void
리턴 void

EnsureInitialized() 보호된 메소드

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

LazySessionPerConversationHolder() 공개 메소드

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