The ISessionFactory 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().
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.
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.
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.
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.
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.
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.
Public methodEvictQueries()()()()
Evict any query result sets cached in the default query cache region.
Public methodEvictQueries(String)
Evict any query result sets cached in the named query cache region.
Public methodGetAllClassMetadata
Get all IClassMetadata as a IDictionary from entityname string to metadata object
Public methodGetAllCollectionMetadata
Get all CollectionMetadata as a IDictionary from role name to metadata object
Public methodGetClassMetadata(String)
Get the IClassMetadata associated with the given entity name
Public methodGetClassMetadata(Type)
Get the IClassMetadata associated with the given entity class
Public methodGetCollectionMetadata
Get the CollectionMetadata associated with the named collection role
Public methodGetCurrentSession
Obtains the current session.
Public methodGetFilterDefinition
Obtain the definition of a filter by name.
Public methodOpenSession()()()()
Create a database connection and open a ISession on it
Public methodOpenSession(IDbConnection)
Open a ISession on the given connection
Public methodOpenSession(IInterceptor)
Create database connection and open a ISession on it, specifying an interceptor
Public methodOpenSession(IDbConnection, IInterceptor)
Open a ISession on the given connection, specifying an interceptor
Public methodOpenStatelessSession()()()()
Get a new stateless session.
Public methodOpenStatelessSession(IDbConnection)
Get a new stateless session for the given ADO.NET connection.

Properties

  NameDescription
Public propertyDefinedFilterNames
Obtain a set of the names of all filters defined on this SessionFactory.
Public propertyIsClosed
Was this ISessionFactory already closed?
Public propertyStatistics
Get the statistics for this session factory

See Also