FileDocCategorySizeDatePackage
SessionFactoryImplementor.javaAPI DocHibernate 3.2.55553Mon May 08 15:59:20 BST 2006org.hibernate.engine

SessionFactoryImplementor

public interface SessionFactoryImplementor implements org.hibernate.SessionFactory, Mapping
Defines the internal contract between the SessionFactory and other parts of Hibernate such as implementors of Type.
see
org.hibernate.SessionFactory
see
org.hibernate.impl.SessionFactoryImpl
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public java.util.MapgetAllSecondLevelCacheRegions()

public org.hibernate.persister.collection.CollectionPersistergetCollectionPersister(java.lang.String role)
Get the persister object for a collection role

public java.util.SetgetCollectionRolesByEntityParticipant(java.lang.String entityName)
Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element.

param
entityName The entity name for which to get the collection roles.
return
set of all the collection roles in which the given entityName participates.

public org.hibernate.connection.ConnectionProvidergetConnectionProvider()
Get the connection provider

public org.hibernate.dialect.DialectgetDialect()
Get the SQL Dialect

public org.hibernate.proxy.EntityNotFoundDelegategetEntityNotFoundDelegate()

public org.hibernate.persister.entity.EntityPersistergetEntityPersister(java.lang.String entityName)
Get the persister for the named entity

public org.hibernate.id.IdentifierGeneratorgetIdentifierGenerator(java.lang.String rootEntityName)
Get the identifier generator for the hierarchy

public java.lang.String[]getImplementors(java.lang.String className)
Get the names of all persistent classes that implement/extend the given interface/class

public java.lang.StringgetImportedClassName(java.lang.String name)
Get a class name, using query language imports

public org.hibernate.InterceptorgetInterceptor()

public NamedQueryDefinitiongetNamedQuery(java.lang.String queryName)

public NamedSQLQueryDefinitiongetNamedSQLQuery(java.lang.String queryName)

public org.hibernate.cache.QueryCachegetQueryCache()
Get the default query cache

public org.hibernate.cache.QueryCachegetQueryCache(java.lang.String regionName)
Get a particular named query cache, or the default cache

param
regionName the name of the cache region, or null for the default query cache
return
the existing cache, or a newly created cache if none by that region name

public org.hibernate.engine.query.QueryPlanCachegetQueryPlanCache()

public ResultSetMappingDefinitiongetResultSetMapping(java.lang.String name)

public java.lang.String[]getReturnAliases(java.lang.String queryString)
Get the return aliases of a query

public org.hibernate.type.Type[]getReturnTypes(java.lang.String queryString)
Get the return types of a query

public org.hibernate.exception.SQLExceptionConvertergetSQLExceptionConverter()
Retrieves the SQLExceptionConverter in effect for this SessionFactory.

return
The SQLExceptionConverter for this SessionFactory.

public org.hibernate.cache.CachegetSecondLevelCacheRegion(java.lang.String regionName)
Get a named second-level cache region

public org.hibernate.cfg.SettingsgetSettings()

public org.hibernate.dialect.function.SQLFunctionRegistrygetSqlFunctionRegistry()

public org.hibernate.stat.StatisticsImplementorgetStatisticsImplementor()
Statistics SPI

public javax.transaction.TransactionManagergetTransactionManager()
Get the JTA transaction manager

public org.hibernate.cache.UpdateTimestampsCachegetUpdateTimestampsCache()
Get the cache of table update timestamps

public org.hibernate.classic.SessionopenSession(java.sql.Connection connection, boolean flushBeforeCompletionEnabled, boolean autoCloseSessionEnabled, org.hibernate.ConnectionReleaseMode connectionReleaseMode)
Open a session conforming to the given parameters. Used mainly by {@link org.hibernate.context.JTASessionContext} for current session processing.

param
connection The external jdbc connection to use, if one (i.e., optional).
param
flushBeforeCompletionEnabled Should the session be auto-flushed prior to transaction completion?
param
autoCloseSessionEnabled Should the session be auto-closed after transaction completion?
param
connectionReleaseMode The release mode for managed jdbc connections.
return
An appropriate session.
throws
HibernateException

public org.hibernate.classic.SessionopenTemporarySession()
Get a nontransactional "current" session for Hibernate EntityManager