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

Inheritance: System.DisposableObject
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DisposeResources ( ) : void
EnsureFlushMode ( ISessionImplementor session, bool isReadOnly ) : void

Private Methods

Méthode 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 méthode

protected DisposeResources ( ) : void
Résultat void

EnsureFlushMode() protected méthode

protected EnsureFlushMode ( ISessionImplementor session, bool isReadOnly ) : void
session ISessionImplementor
isReadOnly bool
Résultat void

GenerateSessionAndTransaction() public méthode

public GenerateSessionAndTransaction ( bool isReadOnly, ISession &session ) : NhProviderTransaction
isReadOnly bool
session ISession
Résultat NhProviderTransaction

GetSessionFromTransaction() public méthode

public GetSessionFromTransaction ( IProviderTransaction transaction, bool isReadonly ) : ISession
transaction IProviderTransaction
isReadonly bool
Résultat ISession

NhFactoryHelper() public méthode

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