| Modifier and Type | Field and Description |
|---|---|
| private transient SessionFactory | |
| private static final Logger | |
| private String | |
| private transient HibernateService | |
| private String | |
| private static final IdentifierGenerator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. |
| public boolean | containsFetchProfileDefinition(String
The name to check name)Implements org. |
| public void | evict(Class<T>
The entity class for which to evict data. persistentClass, Serializable The entity id id)Implements org. |
| public void | evict(Class<T>
The entity class for which to evict data. persistentClass)Implements org. |
| public void | evictCollection(String
The name of the collection role roleName, Serializable The id of the collection owner id)Implements org. |
| public void | evictCollection(String
The name of the collection role whose regions should be evicted roleName)Implements org. |
| public void | evictEntity(String
The entity name for which to evict data. entityName, Serializable The entity id id)Implements org. |
| public void | evictEntity(String
The entity name for which to evict data. entityName)Implements org. |
| public void | evictQueries()
Implements org. |
| public void | evictQueries(String
The named query cache region from which to evict. cacheRegion)Implements org. |
| public Map | getAllClassMetadata()
Implements org. ClassMetadata for all mapped entities.
|
| public Map | getAllCollectionMetadata()
Implements org. CollectionMetadata for all mapped collections
|
| public Cache | getCache()
Implements org. |
| public ClassMetadata | getClassMetadata(Class<T>
The entity class persistentClass)Implements org. ClassMetadata associated with the given entity class.
|
| public ClassMetadata | getClassMetadata(String
The entity class entityName)Implements org. ClassMetadata associated with the given entity class.
|
| public CollectionMetadata | getCollectionMetadata(String
The collection role (in form [owning-entity-name].[collection-property-name]). roleName)Implements org. CollectionMetadata associated with the named collection role.
|
| public Session | getCurrentSession()
Implements org. |
| public Set | getDefinedFilterNames()
Implements org. |
| public FilterDefinition | getFilterDefinition(String
The name of the filter for which to obtain the definition. filterName)Implements org. |
| private synchronized SessionFactory | |
| public Reference | getReference()
Implements javax. |
| public Statistics | getStatistics()
Implements org. |
| public TypeHelper | getTypeHelper()
Implements org. TypeHelper
|
| public boolean | |
| public Session | openSession(Connection
a connection provided by the application. connection, Interceptor a session-scoped interceptor interceptor)Implements org. Session, utilizing the specfied JDBC Connection and
specified Interceptor.
|
| public Session | openSession(Interceptor
a session-scoped interceptor interceptor)Implements org. Session, utilizing the specified Interceptor.
|
| public Session | |
| public Session | openSession(Connection
a connection provided by the application. conn)Implements org. Session, utilizing the specfied JDBC Connection.
|
| public StatelessSession | openStatelessSession()
Implements org. |
| public StatelessSession | openStatelessSession(Connection
Connection provided by the application. conn)Implements org. Connection.
|
| private Object |
| impl | back to summary |
|---|---|
| private transient SessionFactory impl | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| name | back to summary |
|---|---|
| private String name | |
| service | back to summary |
|---|---|
| private transient HibernateService service | |
| uuid | back to summary |
|---|---|
| private String uuid | |
| UUID_GENERATOR | back to summary |
|---|---|
| private static final IdentifierGenerator UUID_GENERATOR | |
| SessionFactoryStub | back to summary |
|---|---|
| pack-priv SessionFactoryStub(HibernateService service) | |
| close | back to summary |
|---|---|
| public void close() throws HibernateException Implements org. Doc from org. Destroy this SessionFactory and release all resources (caches, connection pools, etc).
It is the responsibility of the application to ensure that there are no
open
No-ops if already
| |
| containsFetchProfileDefinition | back to summary |
|---|---|
| public boolean containsFetchProfileDefinition(String name) Implements org. Doc from org. Determine if this session factory contains a fetch profile definition registered under the given name.
| |
| evict | back to summary |
|---|---|
| public void evict(Class<T> persistentClass, Serializable id) throws HibernateException Implements org. Doc from org. Evict an entry from the second-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
| |
| evict | back to summary |
|---|---|
| public void evict(Class<T> persistentClass) throws HibernateException Implements org. Doc from org. Evict all entries from the second-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
| |
| evictCollection | back to summary |
|---|---|
| public void evictCollection(String roleName, Serializable id) throws HibernateException Implements org. Doc from org. Evict an entry from the second-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
| |
| evictCollection | back to summary |
|---|---|
| public void evictCollection(String roleName) throws HibernateException Implements org. Doc from org. Evict all entries from the second-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
| |
| evictEntity | back to summary |
|---|---|
| public void evictEntity(String entityName, Serializable id) throws HibernateException Implements org. Doc from org. Evict an entry from the second-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
| |
| evictEntity | back to summary |
|---|---|
| public void evictEntity(String entityName) throws HibernateException Implements org. Doc from org. Evict all entries from the second-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
| |
| evictQueries | back to summary |
|---|---|
| public void evictQueries() throws HibernateException Implements org. Doc from org. Evict any query result sets cached in the default query cache region.
| |
| evictQueries | back to summary |
|---|---|
| public void evictQueries(String cacheRegion) throws HibernateException Implements org. Doc from org. Evict any query result sets cached in the named query cache region.
| |
| getAllClassMetadata | back to summary |
|---|---|
| public Map Implements org. Doc from org. Retrieve the
| |
| getAllCollectionMetadata | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get the
| |
| getCache | back to summary |
|---|---|
| public Cache getCache() Implements org. Doc from org. Obtain direct access to the underlying cache regions.
| |
| getClassMetadata | back to summary |
|---|---|
| public ClassMetadata getClassMetadata(Class<T> persistentClass) throws HibernateException Implements org. Doc from org. Retrieve the
| |
| getClassMetadata | back to summary |
|---|---|
| public ClassMetadata getClassMetadata(String entityName) throws HibernateException Implements org. Doc from org. Retrieve the
| |
| getCollectionMetadata | back to summary |
|---|---|
| public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException Implements org. Doc from org. Get the
| |
| getCurrentSession | back to summary |
|---|---|
| public Session getCurrentSession() Implements org. Doc from org. Obtains the current session. The definition of what exactly "current"
means controlled by the
Note that for backwards compatibility, if a
| |
| getDefinedFilterNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. Obtain a set of the names of all filters defined on this SessionFactory.
| |
| getFilterDefinition | back to summary |
|---|---|
| public FilterDefinition getFilterDefinition(String filterName) throws HibernateException Implements org. Doc from org. Obtain the definition of a filter by name.
| |
| getImpl | back to summary |
|---|---|
| private synchronized SessionFactory getImpl() | |
| getReference | back to summary |
|---|---|
| public Reference getReference() throws NamingException Implements javax. Doc from javax. Retrieves the Reference of this object.
| |
| getStatistics | back to summary |
|---|---|
| public Statistics getStatistics() Implements org. Doc from org. Retrieve the statistics fopr this factory.
| |
| getTypeHelper | back to summary |
|---|---|
| public TypeHelper getTypeHelper() Implements org. Doc from org. Retrieve this factory's
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements org. Doc from org. Is this factory already closed?
| |
| openSession | back to summary |
|---|---|
| public Session openSession(Connection connection, Interceptor interceptor) Implements org. Doc from org. Open a
Note that the second-level cache will be disabled if you supply a JDBC
connection. Hibernate will not be able to track any statements you might
have executed in the same transaction. Consider implementing your own
| |
| openSession | back to summary |
|---|---|
| public Session openSession(Interceptor interceptor) throws HibernateException Implements org. Doc from org. Open a
JDBC
| |
| openSession | back to summary |
|---|---|
| public Session openSession() throws HibernateException Implements org. Doc from org. Open a
JDBC
| |
| openSession | back to summary |
|---|---|
| public Session openSession(Connection conn) Implements org. Doc from org. Open a
Note that the second-level cache will be disabled if you supply a JDBC
connection. Hibernate will not be able to track any statements you might
have executed in the same transaction. Consider implementing your own
| |
| openStatelessSession | back to summary |
|---|---|
| public StatelessSession openStatelessSession() Implements org. Doc from org. Open a new stateless session.
| |
| openStatelessSession | back to summary |
|---|---|
| public StatelessSession openStatelessSession(Connection conn) Implements org. Doc from org. Open a new stateless session, utilizing the specified JDBC
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() throws ObjectStreamException | |