|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionFactoryImplementor
Defines the internal contract between the SessionFactory and other parts of Hibernate such as implementors of Type.
SessionFactory
,
SessionFactoryImpl
Method Summary | |
---|---|
Map |
getAllSecondLevelCacheRegions()
Get a map of all the second level cache regions currently maintained in this session factory. |
CollectionPersister |
getCollectionPersister(String role)
Get the persister object for a collection role. |
Set<String> |
getCollectionRolesByEntityParticipant(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. |
ConnectionProvider |
getConnectionProvider()
Get the connection provider |
Dialect |
getDialect()
Get the SQL dialect. |
EntityNotFoundDelegate |
getEntityNotFoundDelegate()
|
EntityPersister |
getEntityPersister(String entityName)
Get the persister for the named entity |
SessionFactoryObserver |
getFactoryObserver()
Return the SessionFactoryObserver attached to the SessionFactory if any |
FetchProfile |
getFetchProfile(String name)
Retrieve fetch profile by name. |
IdentifierGenerator |
getIdentifierGenerator(String rootEntityName)
Get the identifier generator for the hierarchy |
String[] |
getImplementors(String className)
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 |
Interceptor |
getInterceptor()
Get the factory scoped interceptor for this factory. |
NamedQueryDefinition |
getNamedQuery(String queryName)
|
NamedSQLQueryDefinition |
getNamedSQLQuery(String queryName)
|
Properties |
getProperties()
Get a copy of the Properties used to configure this session factory. |
QueryCache |
getQueryCache()
Get the default query cache |
QueryCache |
getQueryCache(String regionName)
Get a particular named query cache, or the default cache |
QueryPlanCache |
getQueryPlanCache()
|
ResultSetMappingDefinition |
getResultSetMapping(String name)
|
String[] |
getReturnAliases(String queryString)
Get the return aliases of a query |
Type[] |
getReturnTypes(String queryString)
Get the return types of a query |
Region |
getSecondLevelCacheRegion(String regionName)
Get a named second-level cache region |
Settings |
getSettings()
|
SQLExceptionConverter |
getSQLExceptionConverter()
Retrieves the SQLExceptionConverter in effect for this SessionFactory. |
SQLFunctionRegistry |
getSqlFunctionRegistry()
|
StatisticsImplementor |
getStatisticsImplementor()
Statistics SPI |
TransactionManager |
getTransactionManager()
Get the JTA transaction manager |
TypeResolver |
getTypeResolver()
Retrieve the Type resolver associated with this factory. |
UpdateTimestampsCache |
getUpdateTimestampsCache()
Get the cache of table update timestamps |
Session |
openSession(Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
ConnectionReleaseMode connectionReleaseMode)
Open a session conforming to the given parameters. |
Session |
openTemporarySession()
Get a nontransactional "current" session for Hibernate EntityManager |
Methods inherited from interface org.hibernate.engine.Mapping |
---|
getIdentifierGeneratorFactory, getIdentifierPropertyName, getIdentifierType, getReferencedPropertyType |
Methods inherited from interface javax.naming.Referenceable |
---|
getReference |
Method Detail |
---|
TypeResolver getTypeResolver()
Type
resolver associated with this factory.
Properties getProperties()
EntityPersister getEntityPersister(String entityName) throws MappingException
entityName
- The name of the entity for which to retrieve the persister.
MappingException
- Indicates persister could not be found with that name.CollectionPersister getCollectionPersister(String role) throws MappingException
role
- The role (name) of the collection for which to retrieve the
persister.
MappingException
- Indicates persister could not be found with that role.Dialect getDialect()
getSettings()
.Settings.getDialect()
Interceptor getInterceptor()
QueryPlanCache getQueryPlanCache()
Type[] getReturnTypes(String queryString) throws HibernateException
HibernateException
String[] getReturnAliases(String queryString) throws HibernateException
HibernateException
ConnectionProvider getConnectionProvider()
String[] getImplementors(String className) throws MappingException
MappingException
String getImportedClassName(String name)
TransactionManager getTransactionManager()
QueryCache getQueryCache()
QueryCache getQueryCache(String regionName) throws HibernateException
regionName
- the name of the cache region, or null for the default query cache
HibernateException
UpdateTimestampsCache getUpdateTimestampsCache()
StatisticsImplementor getStatisticsImplementor()
NamedQueryDefinition getNamedQuery(String queryName)
NamedSQLQueryDefinition getNamedSQLQuery(String queryName)
ResultSetMappingDefinition getResultSetMapping(String name)
IdentifierGenerator getIdentifierGenerator(String rootEntityName)
Region getSecondLevelCacheRegion(String regionName)
regionName
- The name of the region to retrieve.
Map getAllSecondLevelCacheRegions()
Region
instances as the values.
SQLExceptionConverter getSQLExceptionConverter()
Settings getSettings()
Session openTemporarySession() throws HibernateException
HibernateException
Session openSession(Connection connection, boolean flushBeforeCompletionEnabled, boolean autoCloseSessionEnabled, ConnectionReleaseMode connectionReleaseMode) throws HibernateException
JTASessionContext
for current session processing.
connection
- The external jdbc connection to use, if one (i.e., optional).flushBeforeCompletionEnabled
- Should the session be auto-flushed
prior to transaction completion?autoCloseSessionEnabled
- Should the session be auto-closed after
transaction completion?connectionReleaseMode
- The release mode for managed jdbc connections.
HibernateException
Set<String> getCollectionRolesByEntityParticipant(String entityName)
entityName
- The entity name for which to get the collection roles.
EntityNotFoundDelegate getEntityNotFoundDelegate()
SQLFunctionRegistry getSqlFunctionRegistry()
FetchProfile getFetchProfile(String name)
name
- The name of the profile to retrieve.
SessionFactoryObserver getFactoryObserver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |