getAllSecondLevelCacheRegions
public Map getAllSecondLevelCacheRegions()
Get a map of all the second level cache regions currently maintained in
this session factory. The map is structured with the region name as the
key and the
Region
instances as the values.
getCollectionPersister
public CollectionPersister getCollectionPersister(String role)
throws MappingException
Get the persister object for a collection role.
role
- The role (name) of the collection for which to retrieve the
persister.
getCollectionRolesByEntityParticipant
public Set 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.
entityName
- The entity name for which to get the collection roles.
- set of all the collection roles in which the given entityName participates.
getConnectionProvider
public ConnectionProvider getConnectionProvider()
Get the connection provider
getDialect
public Dialect getDialect()
getEntityPersister
public EntityPersister getEntityPersister(String entityName)
throws MappingException
Get the persister for the named entity
entityName
- The name of the entity for which to retrieve the persister.
getIdentifierGenerator
public IdentifierGenerator getIdentifierGenerator(String rootEntityName)
Get the identifier generator for the hierarchy
getImplementors
public String[] getImplementors(String className)
throws MappingException
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
getInterceptor
public Interceptor getInterceptor()
Get the factory scoped interceptor for this factory.
- The factory scope interceptor, or null if none.
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
regionName
- the name of the cache region, or null for the default query cache
- the existing cache, or a newly created cache if none by that region name
getReturnAliases
public String[] getReturnAliases(String queryString)
throws HibernateException
Get the return aliases of a query
getReturnTypes
public Type[] getReturnTypes(String queryString)
throws HibernateException
Get the return types of a query
getSQLExceptionConverter
public SQLExceptionConverter getSQLExceptionConverter()
Retrieves the SQLExceptionConverter in effect for this SessionFactory.
- The SQLExceptionConverter for this SessionFactory.
getSecondLevelCacheRegion
public Region getSecondLevelCacheRegion(String regionName)
Get a named second-level cache region
regionName
- The name of the region to retrieve.
getSettings
public Settings getSettings()
getTransactionManager
public TransactionManager getTransactionManager()
Get the JTA transaction manager
getUpdateTimestampsCache
public UpdateTimestampsCache getUpdateTimestampsCache()
Get the cache of table update timestamps
openSession
public Session openSession(Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
ConnectionReleaseMode connectionReleaseMode)
throws HibernateException
Open a session conforming to the given parameters. Used mainly by
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.
openTemporarySession
public Session openTemporarySession()
throws HibernateException
Get a nontransactional "current" session for Hibernate EntityManager