The ISessionFactoryImplementor type exposes the following members.
Methods
Name | Description | |
---|---|---|
Close |
Destroy this SessionFactory and release all resources
connection pools, etc). It is the responsibility of the application
to ensure that there are no open Sessions before calling
close().
(Inherited from ISessionFactory.) | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Evict(Type) |
Evict all entries from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
(Inherited from ISessionFactory.) | |
Evict(Type, Object) |
Evict an entry from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
(Inherited from ISessionFactory.) | |
EvictCollection(String) |
Evict all entries from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
(Inherited from ISessionFactory.) | |
EvictCollection(String, Object) |
Evict an entry from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
(Inherited from ISessionFactory.) | |
EvictEntity(String) |
Evict all entries from the second-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
(Inherited from ISessionFactory.) | |
EvictEntity(String, Object) |
Evict an entry from the second-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
(Inherited from ISessionFactory.) | |
EvictQueries()()()() |
Evict any query result sets cached in the default query cache region.
(Inherited from ISessionFactory.) | |
EvictQueries(String) |
Evict any query result sets cached in the named query cache region.
(Inherited from ISessionFactory.) | |
GetAllClassMetadata | (Inherited from ISessionFactory.) | |
GetAllCollectionMetadata |
Get all CollectionMetadata as a IDictionary from role name
to metadata object
(Inherited from ISessionFactory.) | |
GetAllSecondLevelCacheRegions | ||
GetClassMetadata(String) | Get the IClassMetadata associated with the given entity name (Inherited from ISessionFactory.) | |
GetClassMetadata(Type) |
Get the IClassMetadata associated with the given entity class
(Inherited from ISessionFactory.) | |
GetCollectionMetadata |
Get the CollectionMetadata associated with the named collection role
(Inherited from ISessionFactory.) | |
GetCollectionPersister |
Get the persister object for a collection role
| |
GetCollectionRolesByEntityParticipant |
Retrieves a set of all the collection roles in which the given entity
is a participant, as either an index or an element.
| |
GetCurrentSession |
Obtains the current session.
(Inherited from ISessionFactory.) | |
GetEntityPersister |
Get the persister for the named entity
| |
GetFilterDefinition |
Obtain the definition of a filter by name.
(Inherited from ISessionFactory.) | |
GetIdentifierGenerator |
Get the identifier generator for the hierarchy
| |
GetIdentifierPropertyName | (Inherited from IMapping.) | |
GetIdentifierType | (Inherited from IMapping.) | |
GetImplementors |
Get the names of all persistent classes that implement/extend the given interface/class
| |
GetImportedClassName |
Get a class name, using query language imports
| |
GetNamedQuery |
Gets the hql query identified by the name.
| |
GetNamedSQLQuery | ||
GetQueryCache |
Get a particular named query cache, or the default cache
| |
GetReferencedPropertyType | (Inherited from IMapping.) | |
GetResultSetMapping | ||
GetReturnAliases | Get the return aliases of a query | |
GetReturnTypes |
Get the return types of a query
| |
GetSecondLevelCacheRegion | Get a named second-level cache region | |
HasNonIdentifierPropertyNamedId | (Inherited from IMapping.) | |
OpenSession()()()() |
Create a database connection and open a ISession on it
(Inherited from ISessionFactory.) | |
OpenSession(IDbConnection) |
Open a ISession on the given connection
(Inherited from ISessionFactory.) | |
OpenSession(IInterceptor) |
Create database connection and open a ISession on it, specifying an interceptor
(Inherited from ISessionFactory.) | |
OpenSession(IDbConnection, IInterceptor) |
Open a ISession on the given connection, specifying an interceptor
(Inherited from ISessionFactory.) | |
OpenSession(IDbConnection, Boolean, Boolean, ConnectionReleaseMode) |
Open a session conforming to the given parameters. Used mainly
for current session processing.
| |
OpenStatelessSession()()()() | Get a new stateless session. (Inherited from ISessionFactory.) | |
OpenStatelessSession(IDbConnection) | Get a new stateless session for the given ADO.NET connection. (Inherited from ISessionFactory.) | |
TryGetEntityPersister |
Get the persister for the named entity
| |
TryGetGuessEntityName |
Get the entity-name for a given mapped class.
|
Properties
Name | Description | |
---|---|---|
ConnectionProvider |
Get the IConnectionProvider used.
| |
CurrentSessionContext |
Gets the ICurrentSessionContext instance attached to this session factory.
| |
DefinedFilterNames |
Obtain a set of the names of all filters defined on this SessionFactory.
(Inherited from ISessionFactory.) | |
Dialect |
Get the SQL Dialect.
| |
EntityNotFoundDelegate | ||
Interceptor | ||
IsClosed | Was this ISessionFactory already closed? (Inherited from ISessionFactory.) | |
QueryCache |
Get the default query cache
| |
QueryPlanCache | ||
Settings | ||
SQLExceptionConverter | Retrieves the SQLExceptionConverter in effect for this SessionFactory. | |
SQLFunctionRegistry | ||
Statistics | Get the statistics for this session factory (Inherited from ISessionFactory.) | |
StatisticsImplementor | Statistics SPI | |
TransactionFactory | ||
UpdateTimestampsCache | The cache of table update timestamps |