C# Class Rebel.Framework.Persistence.NHibernate.NhFactoryHelper

Inheritance: System.DisposableObject
Mostrar archivo Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
GenerateSessionAndTransaction ( bool isReadOnly, ISession &session ) : NhProviderTransaction
GetSessionFromTransaction ( IProviderTransaction transaction, bool isReadonly ) : ISession
NhFactoryHelper ( Configuration config, ISession singleProvidedSession, bool leaveSessionOpenOnDispose, bool isSingleSessionFinalized, IFrameworkContext frameworkContext ) : System

Protected Methods

Method Description
DisposeResources ( ) : void
EnsureFlushMode ( ISessionImplementor session, bool isReadOnly ) : void

Private Methods

Method Description
CheckFirstRunTasks ( ISession session ) : ISession
GetNHibernateSession ( bool isReadonly, bool forceNewUnbounded = false ) : ISession

Retursn the NHibernate session to use

GetNHibernateSessionFactory ( ) : ISessionFactory
UnbindAndCloseSession ( ISessionFactory nhSessionFactory ) : void

Method Details

DisposeResources() protected method

protected DisposeResources ( ) : void
return void

EnsureFlushMode() protected method

protected EnsureFlushMode ( ISessionImplementor session, bool isReadOnly ) : void
session ISessionImplementor
isReadOnly bool
return void

GenerateSessionAndTransaction() public method

public GenerateSessionAndTransaction ( bool isReadOnly, ISession &session ) : NhProviderTransaction
isReadOnly bool
session ISession
return NhProviderTransaction

GetSessionFromTransaction() public method

public GetSessionFromTransaction ( IProviderTransaction transaction, bool isReadonly ) : ISession
transaction IProviderTransaction
isReadonly bool
return ISession

NhFactoryHelper() public method

public NhFactoryHelper ( Configuration config, ISession singleProvidedSession, bool leaveSessionOpenOnDispose, bool isSingleSessionFinalized, IFrameworkContext frameworkContext ) : System
config Configuration
singleProvidedSession ISession
leaveSessionOpenOnDispose bool
isSingleSessionFinalized bool
frameworkContext IFrameworkContext
return System