C# 클래스 Spring.Data.NHibernate.Support.SessionScope.LazySessionHolder

This sessionHolder creates a default session only if it is needed.
Although a NHibernateSession deferes creation of db-connections until they are really needed, instantiation a session is imho still more expensive than this LazySessionHolder. (EE)
상속: SessionHolder
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
Close ( ) : void

Ensure session is closed (if any) and remove circular references to avoid memory leaks!

LazySessionHolder ( SessionScope owner ) : System

Initialize a new instance.

보호된 메소드들

메소드 설명
EnsureInitialized ( ) : void

Create a new session on demand

메소드 상세

Close() 공개 메소드

Ensure session is closed (if any) and remove circular references to avoid memory leaks!
public Close ( ) : void
리턴 void

EnsureInitialized() 보호된 메소드

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

LazySessionHolder() 공개 메소드

Initialize a new instance.
public LazySessionHolder ( SessionScope owner ) : System
owner SessionScope
리턴 System