java.lang.Object | |
↳ | org.hibernate.jmx.SessionFactoryStub |
A flyweight for SessionFactory. If the MBean itself does not have classpath to the persistent classes, then a stub will be registered with JNDI and the actual SessionFactoryImpl built upon first access.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Destroy this SessionFactory and release all resources (caches,
connection pools, etc).
| |||||||||||
Determine if this session factory contains a fetch profile definition
registered under the given name.
| |||||||||||
Evict an entry from the second-level cache.
| |||||||||||
Evict all entries from the second-level cache.
| |||||||||||
Evict an entry from the second-level cache.
| |||||||||||
Evict all entries from the second-level cache.
| |||||||||||
Evict an entry from the second-level cache.
| |||||||||||
Evict all entries from the second-level cache.
| |||||||||||
Evict any query result sets cached in the default query cache region.
| |||||||||||
Evict any query result sets cached in the named query cache region.
| |||||||||||
Retrieve the
ClassMetadata for all mapped entities. | |||||||||||
Get the
CollectionMetadata for all mapped collections | |||||||||||
Obtain direct access to the underlying cache regions.
| |||||||||||
Retrieve the
ClassMetadata associated with the given entity class. | |||||||||||
Retrieve the
ClassMetadata associated with the given entity class. | |||||||||||
Get the
CollectionMetadata associated with the named collection role. | |||||||||||
Obtains the current session.
| |||||||||||
Obtain a set of the names of all filters defined on this SessionFactory.
| |||||||||||
Obtain the definition of a filter by name.
| |||||||||||
Retrieve the statistics fopr this factory.
| |||||||||||
Retrieve this factory's
TypeHelper | |||||||||||
Is this factory already closed?
| |||||||||||
Open a
Session . | |||||||||||
Open a
Session , utilizing the specfied JDBC Connection . | |||||||||||
Open a
Session , utilizing the specified Interceptor . | |||||||||||
Open a new stateless session, utilizing the specified JDBC
Connection . | |||||||||||
Open a new stateless session.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
javax.naming.Referenceable
| |||||||||||
From interface
org.hibernate.SessionFactory
|
Destroy this SessionFactory and release all resources (caches, connection pools, etc).
It is the responsibility of the application to ensure that there are no opensessions
before calling this method as the impact
on those sessions
is indeterminate.
No-ops if already closed
.HibernateException |
---|
Determine if this session factory contains a fetch profile definition registered under the given name.
name | The name to check |
---|
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.
persistentClass | The entity class for which to evict data. |
---|---|
id | The entity id |
HibernateException |
---|
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.
persistentClass | The entity class for which to evict data. |
---|
HibernateException |
---|
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.
roleName | The name of the collection role |
---|---|
id | The id of the collection owner |
HibernateException |
---|
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.
roleName | The name of the collection role whose regions should be evicted |
---|
HibernateException |
---|
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.
entityName | The entity name for which to evict data. |
---|---|
id | The entity id |
HibernateException |
---|
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.
entityName | The entity name for which to evict data. |
---|
HibernateException |
---|
Evict any query result sets cached in the default query cache region.
HibernateException |
---|
Evict any query result sets cached in the named query cache region.
cacheRegion | The named query cache region from which to evict. |
---|
HibernateException |
---|
Retrieve the ClassMetadata
for all mapped entities.
ClassMetadata
keyed by the
corresponding String
entity-name.HibernateException |
---|
Get the CollectionMetadata
for all mapped collections
HibernateException |
---|
Obtain direct access to the underlying cache regions.
Retrieve the ClassMetadata
associated with the given entity class.
persistentClass | The entity class |
---|
HibernateException |
---|
Retrieve the ClassMetadata
associated with the given entity class.
entityName | The entity class |
---|
HibernateException |
---|
Get the CollectionMetadata
associated with the named collection role.
roleName | The collection role (in form [owning-entity-name].[collection-property-name]). |
---|
HibernateException |
---|
Obtains the current session. The definition of what exactly "current"
means controlled by the CurrentSessionContext
impl configured
for use.
CurrentSessionContext
is not configured but a JTA TransactionManagerLookup
is configured this will default to the JTASessionContext
impl.Obtain a set of the names of all filters defined on this SessionFactory.
Obtain the definition of a filter by name.
filterName | The name of the filter for which to obtain the definition. |
---|
HibernateException |
---|
Retrieve the statistics fopr this factory.
Retrieve this factory's TypeHelper
TypeHelper
Is this factory already closed?
Open a Session
, utilizing the specfied JDBC Connection
and
specified Interceptor
.
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
ConnectionProvider
instead as a highly
recommended alternative.
connection | a connection provided by the application. |
---|---|
interceptor | a session-scoped interceptor |
Open a Session
.
connection(s
will be obtained from the
configured ConnectionProvider
as needed
to perform requested work.HibernateException |
---|
Open a Session
, utilizing the specfied JDBC Connection
.
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
ConnectionProvider
instead as a highly
recommended alternative.
conn | a connection provided by the application. |
---|
Open a Session
, utilizing the specified Interceptor
.
connection(s
will be obtained from the
configured ConnectionProvider
as needed
to perform requested work.interceptor | a session-scoped interceptor |
---|
HibernateException |
---|
Open a new stateless session, utilizing the specified JDBC
Connection
.
conn | Connection provided by the application. |
---|
Open a new stateless session.