C# Класс NHibernate.Impl.SessionFactoryImpl

Наследование: ISessionFactory, ISessionFactoryImplementor, IObjectReference
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Close ( ) : void

Closes the session factory, releasing all held resources. cleans up used cache regions and "stops" the cache provider. close the ADO.NET connection

Dispose ( ) : void
Evict ( System persistentClass ) : void
Evict ( System persistentClass, object id ) : void
EvictCollection ( string roleName ) : void
EvictCollection ( string roleName, object id ) : void
EvictEntity ( string entityName ) : void
EvictEntity ( string entityName, object id ) : void
EvictQueries ( ) : void
EvictQueries ( string cacheRegion ) : void
GetAllClassMetadata ( ) : IClassMetadata>.IDictionary

GetAllCollectionMetadata ( ) : ICollectionMetadata>.IDictionary

GetAllSecondLevelCacheRegions ( ) : ICache>.IDictionary
GetClassMetadata ( System persistentClass ) : IClassMetadata
GetClassMetadata ( string entityName ) : IClassMetadata
GetCollectionMetadata ( string roleName ) : ICollectionMetadata
GetCollectionPersister ( string role ) : ICollectionPersister
GetCollectionRolesByEntityParticipant ( string entityName ) : ISet
GetCurrentSession ( ) : ISession
GetEntityPersister ( string entityName ) : IEntityPersister
GetFilterDefinition ( string filterName ) : NHibernate.Engine.FilterDefinition
GetIdentifierGenerator ( string rootEntityName ) : IIdentifierGenerator
GetIdentifierPropertyName ( string className ) : string
GetIdentifierType ( string className ) : IType
GetImplementors ( string entityOrClassName ) : string[]

Return the names of all persistent (mapped) classes that extend or implement the given class or interface, accounting for implicit/explicit polymorphism settings and excluding mapped subclasses/joined-subclasses of other classes in the result.

GetImportedClassName ( string className ) : string
GetNamedQuery ( string queryName ) : NHibernate.Engine.NamedQueryDefinition

Gets the hql query identified by the name.

GetNamedSQLQuery ( string queryName ) : NHibernate.Engine.NamedSQLQueryDefinition
GetQueryCache ( string cacheRegion ) : IQueryCache
GetReferencedPropertyType ( string className, string propertyName ) : IType
GetResultSetMapping ( string resultSetName ) : NHibernate.Engine.ResultSetMappingDefinition
GetReturnAliases ( string queryString ) : string[]

Get the return aliases of a query

GetReturnTypes ( String queryString ) : IType[]
GetSecondLevelCacheRegion ( string regionName ) : ICache
HasNonIdentifierPropertyNamedId ( string className ) : bool
OpenSession ( ) : ISession
OpenSession ( IDbConnection connection ) : ISession
OpenSession ( IDbConnection connection, IInterceptor sessionLocalInterceptor ) : ISession
OpenSession ( IDbConnection connection, bool flushBeforeCompletionEnabled, bool autoCloseSessionEnabled, ConnectionReleaseMode connectionReleaseMode ) : ISession
OpenSession ( IInterceptor sessionLocalInterceptor ) : ISession
OpenStatelessSession ( ) : IStatelessSession

Get a new stateless session.

OpenStatelessSession ( IDbConnection connection ) : IStatelessSession

Get a new stateless session for the given ADO.NET connection.

SessionFactoryImpl ( NHibernate.Cfg.Configuration cfg, IMapping mapping, NHibernate.Cfg.Settings settings, EventListeners listeners ) : System
TryGetEntityPersister ( string entityName ) : IEntityPersister
TryGetGuessEntityName ( System implementor ) : string

Приватные методы

Метод Описание
BuildCurrentSessionContext ( ) : ICurrentSessionContext
CheckNamedQueries ( ) : HibernateException>.IDictionary
GenerateCacheKeyForEvict ( object id, IType type, string entityOrRoleName ) : NHibernate.Cache.CacheKey
GetRealObject ( StreamingContext context ) : object
Init ( ) : void
IsMatchingImplementor ( string entityOrClassName, System entityClass, NHibernate.Persister.Entity.IQueryable implementor ) : bool
OpenSession ( IDbConnection connection, bool autoClose, long timestamp, IInterceptor sessionLocalInterceptor ) : NHibernate.Impl.SessionImpl

Описание методов

Close() публичный Метод

Closes the session factory, releasing all held resources. cleans up used cache regions and "stops" the cache provider. close the ADO.NET connection
public Close ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Evict() публичный Метод

public Evict ( System persistentClass ) : void
persistentClass System
Результат void

Evict() публичный Метод

public Evict ( System persistentClass, object id ) : void
persistentClass System
id object
Результат void

EvictCollection() публичный Метод

public EvictCollection ( string roleName ) : void
roleName string
Результат void

EvictCollection() публичный Метод

public EvictCollection ( string roleName, object id ) : void
roleName string
id object
Результат void

EvictEntity() публичный Метод

public EvictEntity ( string entityName ) : void
entityName string
Результат void

EvictEntity() публичный Метод

public EvictEntity ( string entityName, object id ) : void
entityName string
id object
Результат void

EvictQueries() публичный Метод

public EvictQueries ( ) : void
Результат void

EvictQueries() публичный Метод

public EvictQueries ( string cacheRegion ) : void
cacheRegion string
Результат void

GetAllClassMetadata() публичный Метод

public GetAllClassMetadata ( ) : IClassMetadata>.IDictionary
Результат IClassMetadata>.IDictionary

GetAllCollectionMetadata() публичный Метод

public GetAllCollectionMetadata ( ) : ICollectionMetadata>.IDictionary
Результат ICollectionMetadata>.IDictionary

GetAllSecondLevelCacheRegions() публичный Метод

public GetAllSecondLevelCacheRegions ( ) : ICache>.IDictionary
Результат ICache>.IDictionary

GetClassMetadata() публичный Метод

public GetClassMetadata ( System persistentClass ) : IClassMetadata
persistentClass System
Результат IClassMetadata

GetClassMetadata() публичный Метод

public GetClassMetadata ( string entityName ) : IClassMetadata
entityName string
Результат IClassMetadata

GetCollectionMetadata() публичный Метод

public GetCollectionMetadata ( string roleName ) : ICollectionMetadata
roleName string
Результат ICollectionMetadata

GetCollectionPersister() публичный Метод

public GetCollectionPersister ( string role ) : ICollectionPersister
role string
Результат ICollectionPersister

GetCollectionRolesByEntityParticipant() публичный Метод

public GetCollectionRolesByEntityParticipant ( string entityName ) : ISet
entityName string
Результат ISet

GetCurrentSession() публичный Метод

public GetCurrentSession ( ) : ISession
Результат ISession

GetEntityPersister() публичный Метод

public GetEntityPersister ( string entityName ) : IEntityPersister
entityName string
Результат IEntityPersister

GetFilterDefinition() публичный Метод

public GetFilterDefinition ( string filterName ) : NHibernate.Engine.FilterDefinition
filterName string
Результат NHibernate.Engine.FilterDefinition

GetIdentifierGenerator() публичный Метод

public GetIdentifierGenerator ( string rootEntityName ) : IIdentifierGenerator
rootEntityName string
Результат IIdentifierGenerator

GetIdentifierPropertyName() публичный Метод

public GetIdentifierPropertyName ( string className ) : string
className string
Результат string

GetIdentifierType() публичный Метод

public GetIdentifierType ( string className ) : IType
className string
Результат IType

GetImplementors() публичный Метод

Return the names of all persistent (mapped) classes that extend or implement the given class or interface, accounting for implicit/explicit polymorphism settings and excluding mapped subclasses/joined-subclasses of other classes in the result.
public GetImplementors ( string entityOrClassName ) : string[]
entityOrClassName string
Результат string[]

GetImportedClassName() публичный Метод

public GetImportedClassName ( string className ) : string
className string
Результат string

GetNamedQuery() публичный Метод

Gets the hql query identified by the name.
public GetNamedQuery ( string queryName ) : NHibernate.Engine.NamedQueryDefinition
queryName string The name of that identifies the query.
Результат NHibernate.Engine.NamedQueryDefinition

GetNamedSQLQuery() публичный Метод

public GetNamedSQLQuery ( string queryName ) : NHibernate.Engine.NamedSQLQueryDefinition
queryName string
Результат NHibernate.Engine.NamedSQLQueryDefinition

GetQueryCache() публичный Метод

public GetQueryCache ( string cacheRegion ) : IQueryCache
cacheRegion string
Результат IQueryCache

GetReferencedPropertyType() публичный Метод

public GetReferencedPropertyType ( string className, string propertyName ) : IType
className string
propertyName string
Результат IType

GetResultSetMapping() публичный Метод

public GetResultSetMapping ( string resultSetName ) : NHibernate.Engine.ResultSetMappingDefinition
resultSetName string
Результат NHibernate.Engine.ResultSetMappingDefinition

GetReturnAliases() публичный Метод

Get the return aliases of a query
public GetReturnAliases ( string queryString ) : string[]
queryString string
Результат string[]

GetReturnTypes() публичный Метод

public GetReturnTypes ( String queryString ) : IType[]
queryString String
Результат IType[]

GetSecondLevelCacheRegion() публичный Метод

public GetSecondLevelCacheRegion ( string regionName ) : ICache
regionName string
Результат ICache

HasNonIdentifierPropertyNamedId() публичный Метод

public HasNonIdentifierPropertyNamedId ( string className ) : bool
className string
Результат bool

OpenSession() публичный Метод

public OpenSession ( ) : ISession
Результат ISession

OpenSession() публичный Метод

public OpenSession ( IDbConnection connection ) : ISession
connection IDbConnection
Результат ISession

OpenSession() публичный Метод

public OpenSession ( IDbConnection connection, IInterceptor sessionLocalInterceptor ) : ISession
connection IDbConnection
sessionLocalInterceptor IInterceptor
Результат ISession

OpenSession() публичный Метод

public OpenSession ( IDbConnection connection, bool flushBeforeCompletionEnabled, bool autoCloseSessionEnabled, ConnectionReleaseMode connectionReleaseMode ) : ISession
connection IDbConnection
flushBeforeCompletionEnabled bool
autoCloseSessionEnabled bool
connectionReleaseMode ConnectionReleaseMode
Результат ISession

OpenSession() публичный Метод

public OpenSession ( IInterceptor sessionLocalInterceptor ) : ISession
sessionLocalInterceptor IInterceptor
Результат ISession

OpenStatelessSession() публичный Метод

Get a new stateless session.
public OpenStatelessSession ( ) : IStatelessSession
Результат IStatelessSession

OpenStatelessSession() публичный Метод

Get a new stateless session for the given ADO.NET connection.
public OpenStatelessSession ( IDbConnection connection ) : IStatelessSession
connection IDbConnection
Результат IStatelessSession

SessionFactoryImpl() публичный Метод

public SessionFactoryImpl ( NHibernate.Cfg.Configuration cfg, IMapping mapping, NHibernate.Cfg.Settings settings, EventListeners listeners ) : System
cfg NHibernate.Cfg.Configuration
mapping IMapping
settings NHibernate.Cfg.Settings
listeners EventListeners
Результат System

TryGetEntityPersister() публичный Метод

public TryGetEntityPersister ( string entityName ) : IEntityPersister
entityName string
Результат IEntityPersister

TryGetGuessEntityName() публичный Метод

public TryGetGuessEntityName ( System implementor ) : string
implementor System
Результат string