站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

SessionFactoryImplementor (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.engine
Interface SessionFactoryImplementor

All Superinterfaces:
Mapping, Referenceable, Serializable, SessionFactory
All Known Implementing Classes:
SessionFactoryImpl

public interface SessionFactoryImplementor
extends Mapping, SessionFactory

Defines the internal contract between the SessionFactory and other parts of Hibernate such as implementors of Type.

Author:
Gavin King
See Also:
SessionFactory, SessionFactoryImpl

Method Summary
 CollectionPersister getCollectionPersister(String role)
          Get the persister object for a collection role
 ConnectionProvider getConnectionProvider()
          Get the connection provider
 String getDefaultSchema()
          Get the database schema specified in hibernate.default_schema
 Dialect getDialect()
          Get the SQL Dialect
 String[] getImplementors(Class clazz)
          Get the names of all persistent classes that implement/extend the given interface/class
 String getImportedClassName(String name)
          Get a class name, using query language imports
 int getJdbcBatchSize()
          Get the JDBC batch size
 Integer getJdbcFetchSize()
          Get the JDBC fetch size
 Integer getMaximumFetchDepth()
          Get the maxmimum depth of outer join fetching
 ClassPersister getPersister(Class clazz)
          Get the persister for a class
 ClassPersister getPersister(String className)
          Get the persister for the named class
 QueryCache getQueryCache()
          Get the default query cache
 QueryCache getQueryCache(String regionName)
          Get a particular named query cache, or the default cache
 Type[] getReturnTypes(String queryString)
          Get the return types of a query
 TransactionManager getTransactionManager()
          Get the JTA transaction manager
 boolean isGetGeneratedKeysEnabled()
          Is PreparedStatement.getGeneratedKeys supported?
 boolean isJdbcBatchVersionedData()
          Should versioned data be included in jdbc batches?
 boolean isOuterJoinedFetchEnabled()
          Is outerjoin fetching enabled?
 boolean isQueryCacheEnabled()
          If query caching enabled?
 boolean isScrollableResultSetsEnabled()
          Are scrollable ResultSets supported?
 boolean isShowSqlEnabled()
          Are we logging SQL to the console?
 boolean isWrapResultSetsEnabled()
          Should Hibernate wrap result sets in order to speed up column name lookups?
 
Methods inherited from interface net.sf.hibernate.engine.Mapping
getIdentifierPropertyName, getIdentifierType, getPropertyType
 
Methods inherited from interface net.sf.hibernate.SessionFactory
close, evict, evict, evictCollection, evictCollection, evictQueries, evictQueries, getAllClassMetadata, getAllCollectionMetadata, getClassMetadata, getCollectionMetadata, getSQLExceptionConverter, openDatabinder, openSession, openSession, openSession, openSession
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Method Detail

getPersister

public ClassPersister getPersister(Class clazz)
                            throws MappingException
Get the persister for a class

Throws:
MappingException

getPersister

public ClassPersister getPersister(String className)
                            throws MappingException
Get the persister for the named class

Throws:
MappingException

getCollectionPersister

public CollectionPersister getCollectionPersister(String role)
                                           throws MappingException
Get the persister object for a collection role

Throws:
MappingException

isOuterJoinedFetchEnabled

public boolean isOuterJoinedFetchEnabled()
Is outerjoin fetching enabled?


isScrollableResultSetsEnabled

public boolean isScrollableResultSetsEnabled()
Are scrollable ResultSets supported?


isGetGeneratedKeysEnabled

public boolean isGetGeneratedKeysEnabled()
Is PreparedStatement.getGeneratedKeys supported?


getDefaultSchema

public String getDefaultSchema()
Get the database schema specified in hibernate.default_schema


getDialect

public Dialect getDialect()
Get the SQL Dialect


getReturnTypes

public Type[] getReturnTypes(String queryString)
                      throws HibernateException
Get the return types of a query

Throws:
HibernateException

getConnectionProvider

public ConnectionProvider getConnectionProvider()
Get the connection provider


getImplementors

public String[] getImplementors(Class clazz)
Get the names of all persistent classes that implement/extend the given interface/class


getImportedClassName

public String getImportedClassName(String name)
Get a class name, using query language imports


getJdbcBatchSize

public int getJdbcBatchSize()
Get the JDBC batch size


getJdbcFetchSize

public Integer getJdbcFetchSize()
Get the JDBC fetch size


getMaximumFetchDepth

public Integer getMaximumFetchDepth()
Get the maxmimum depth of outer join fetching


getTransactionManager

public TransactionManager getTransactionManager()
Get the JTA transaction manager


isShowSqlEnabled

public boolean isShowSqlEnabled()
Are we logging SQL to the console?


getQueryCache

public QueryCache getQueryCache()
Get the default query cache


getQueryCache

public QueryCache getQueryCache(String regionName)
                         throws HibernateException
Get a particular named query cache, or the default cache

Parameters:
regionName - the name of the cache region, or null for the default query cache
Returns:
the existing cache, or a newly created cache if none by that region name
Throws:
HibernateException

isQueryCacheEnabled

public boolean isQueryCacheEnabled()
If query caching enabled?


isJdbcBatchVersionedData

public boolean isJdbcBatchVersionedData()
Should versioned data be included in jdbc batches?

Returns:
true if versioned data should be batched.

isWrapResultSetsEnabled

public boolean isWrapResultSetsEnabled()
Should Hibernate wrap result sets in order to speed up column name lookups?

Returns:
true if result sets should get wrapped; false otherwise.