Namespaces

Types

Type ISessionFactoryImplementor

Namespace NHibernate.Engine

Interfaces IMapping, ISessionFactory

Methods

Properties

Public instance methods

void CloseConnection(IDbConnection conn)

Release an ADO.NET connection
Parameters
IDbConnection conn

ICollectionPersister GetCollectionPersister(string role)

Get the persister object for a collection role
Parameters
return ICollectionPersister
string role

IEntityPersister GetEntityPersister(Type clazz)

Get the persister for a class
Parameters
return IEntityPersister
Type clazz

IEntityPersister GetEntityPersister(string className)

Get the persister for the named class
Parameters
return IEntityPersister The IEntityPersister for the class.
string className The name of the class that is persisted.

IEntityPersister GetEntityPersister(string className, bool throwIfNotFound)

Get the persister for the named class
Parameters
return IEntityPersister The IEntityPersister for the class.
string className The name of the class that is persisted.
bool throwIfNotFound ${WriteSummary(content)}

IIdentifierGenerator GetIdentifierGenerator(Type rootClass)

Get the identifier generator for the hierarchy
Parameters
return IIdentifierGenerator
Type rootClass

String[] GetImplementors(Type clazz)

Get the names of all persistent classes that implement/extend the given interface/class
Parameters
return String[]
Type clazz

string GetImportedClassName(string name)

Get a class name, using query language imports
Parameters
return string
string name

IQueryCache GetQueryCache(string regionName)

Get a particular named query cache, or the default cache
Parameters
return IQueryCache the existing cache, or a newly created cache if none by that region name
string regionName the name of the cache region, or null for the default query cache

ResultSetMappingDefinition GetResultSetMapping(string resultSetRef)

Parameters
return ResultSetMappingDefinition
string resultSetRef

IType[] GetReturnTypes(string queryString)

Get the return types of a query
Parameters
return IType[]
string queryString

IDbConnection OpenConnection()

Obtain an ADO.NET connection
Parameters
return IDbConnection

ISession OpenSession(IDbConnection connection, ConnectionReleaseMode connectionReleaseMode)

Open a session conforming to the given parameters. For use mainly by ICurrentSessionContext implementations.
Parameters
return ISession An appropriate session.
IDbConnection connection The external ADO.NET connection to use, if any (i.e., optional).
ConnectionReleaseMode connectionReleaseMode The release mode for managed database connections.

Public properties

int BatchSize get;

return int

ICurrentSessionContext CurrentSessionContext get;

Gets the ICurrentSessionContext instance attached to this session factory.
return ICurrentSessionContext

string DefaultSchema get;

Get the database schema specified in hibernate.default_schema
return string

int FetchSize get;

return int

bool IsBatchUpdateEnabled get;

Gets a boolean indicating if the sql statement should be prepared. The value is calculated from hibernate.adonet.batch_size if the value exists and greater than 0.
return bool

bool IsGetGeneratedKeysEnabled get;

Is PreparedStatement.getGeneratedKeys supported (Java-specific?)
return bool

IsolationLevel Isolation get;

Gets the IsolationLevel an IDbTransaction should be set to.
This is only applicable to manually controlled NHibernate Transactions.
return IsolationLevel

bool IsOuterJoinedFetchEnabled get;

Is outerjoin fetching enabled?
return bool

bool IsQueryCacheEnabled get;

Is query caching enabled?
return bool

bool IsScrollableResultSetsEnabled get;

Are scrollable ResultSet s supported?
return bool

bool IsShowSqlEnabled get;

Are we logging SQL to the console?
return bool

int MaximumFetchDepth get;

Maximum depth of outer join fetching
return int

IQueryCache QueryCache get;

Get the default query cache
return IQueryCache

SQLFunctionRegistry SQLFunctionRegistry get;

return SQLFunctionRegistry

ITransactionFactory TransactionFactory get;

return ITransactionFactory