The ISessionFactoryImplementor type exposes the following members.

Methods

  NameDescription
Public methodClose
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.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodEvict(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.)
Public methodEvict(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.)
Public methodEvictCollection(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.)
Public methodEvictCollection(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.)
Public methodEvictEntity(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.)
Public methodEvictEntity(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.)
Public methodEvictQueries()()()()
Evict any query result sets cached in the default query cache region.
(Inherited from ISessionFactory.)
Public methodEvictQueries(String)
Evict any query result sets cached in the named query cache region.
(Inherited from ISessionFactory.)
Public methodGetAllClassMetadata
Get all IClassMetadata as a IDictionary from entityname string to metadata object
(Inherited from ISessionFactory.)
Public methodGetAllCollectionMetadata
Get all CollectionMetadata as a IDictionary from role name to metadata object
(Inherited from ISessionFactory.)
Public methodGetAllSecondLevelCacheRegions
Public methodGetClassMetadata(String)
Get the IClassMetadata associated with the given entity name
(Inherited from ISessionFactory.)
Public methodGetClassMetadata(Type)
Get the IClassMetadata associated with the given entity class
(Inherited from ISessionFactory.)
Public methodGetCollectionMetadata
Get the CollectionMetadata associated with the named collection role
(Inherited from ISessionFactory.)
Public methodGetCollectionPersister
Get the persister object for a collection role
Public methodGetCollectionRolesByEntityParticipant
Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element.
Public methodGetCurrentSession
Obtains the current session.
(Inherited from ISessionFactory.)
Public methodGetEntityPersister
Get the persister for the named entity
Public methodGetFilterDefinition
Obtain the definition of a filter by name.
(Inherited from ISessionFactory.)
Public methodGetIdentifierGenerator
Get the identifier generator for the hierarchy
Public methodGetIdentifierPropertyName (Inherited from IMapping.)
Public methodGetIdentifierType (Inherited from IMapping.)
Public methodGetImplementors
Get the names of all persistent classes that implement/extend the given interface/class
Public methodGetImportedClassName
Get a class name, using query language imports
Public methodGetNamedQuery
Gets the hql query identified by the name.
Public methodGetNamedSQLQuery
Public methodGetQueryCache
Get a particular named query cache, or the default cache
Public methodGetReferencedPropertyType (Inherited from IMapping.)
Public methodGetResultSetMapping
Public methodGetReturnAliases
Get the return aliases of a query
Public methodGetReturnTypes
Get the return types of a query
Public methodGetSecondLevelCacheRegion
Get a named second-level cache region
Public methodHasNonIdentifierPropertyNamedId (Inherited from IMapping.)
Public methodOpenSession()()()()
Create a database connection and open a ISession on it
(Inherited from ISessionFactory.)
Public methodOpenSession(IDbConnection)
Open a ISession on the given connection
(Inherited from ISessionFactory.)
Public methodOpenSession(IInterceptor)
Create database connection and open a ISession on it, specifying an interceptor
(Inherited from ISessionFactory.)
Public methodOpenSession(IDbConnection, IInterceptor)
Open a ISession on the given connection, specifying an interceptor
(Inherited from ISessionFactory.)
Public methodOpenSession(IDbConnection, Boolean, Boolean, ConnectionReleaseMode)
Open a session conforming to the given parameters. Used mainly for current session processing.
Public methodOpenStatelessSession()()()()
Get a new stateless session.
(Inherited from ISessionFactory.)
Public methodOpenStatelessSession(IDbConnection)
Get a new stateless session for the given ADO.NET connection.
(Inherited from ISessionFactory.)
Public methodTryGetEntityPersister
Get the persister for the named entity
Public methodTryGetGuessEntityName
Get the entity-name for a given mapped class.

Properties

  NameDescription
Public propertyConnectionProvider
Get the IConnectionProvider used.
Public propertyCurrentSessionContext
Gets the ICurrentSessionContext instance attached to this session factory.
Public propertyDefinedFilterNames
Obtain a set of the names of all filters defined on this SessionFactory.
(Inherited from ISessionFactory.)
Public propertyDialect
Get the SQL Dialect.
Public propertyEntityNotFoundDelegate
Public propertyInterceptor
Public propertyIsClosed
Was this ISessionFactory already closed?
(Inherited from ISessionFactory.)
Public propertyQueryCache
Get the default query cache
Public propertyQueryPlanCache
Public propertySettings
Public propertySQLExceptionConverter
Retrieves the SQLExceptionConverter in effect for this SessionFactory.
Public propertySQLFunctionRegistry
Public propertyStatistics
Get the statistics for this session factory
(Inherited from ISessionFactory.)
Public propertyStatisticsImplementor
Statistics SPI
Public propertyTransactionFactory
Public propertyUpdateTimestampsCache
The cache of table update timestamps

See Also