public interface Session extends SharedSessionContract, java.io.Closeable
Session sess = factory.openSession(); Transaction tx; try { tx = sess.beginTransaction(); //do some work ... tx.commit(); } catch (Exception e) { if (tx!=null) tx.rollback(); throw e; } finally { sess.close(); }
SessionFactory
Modifier and Type | Interface and Description |
---|---|
static interface |
Session.LockRequest
Contains locking details (LockMode, Timeout and Scope).
|
Modifier and Type | Method and Description |
---|---|
void |
addEventListeners(SessionEventListener... listeners)
Add one or more listeners to the Session
|
Session.LockRequest |
buildLockRequest(LockOptions lockOptions)
Build a LockRequest that specifies the LockMode, pessimistic lock timeout and lock scope.
|
<T> IdentifierLoadAccess<T> |
byId(java.lang.Class<T> entityClass)
Create an
IdentifierLoadAccess instance to retrieve the specified entity by
primary key. |
IdentifierLoadAccess |
byId(java.lang.String entityName)
Create an
IdentifierLoadAccess instance to retrieve the specified entity type by
primary key. |
<T> MultiIdentifierLoadAccess<T> |
byMultipleIds(java.lang.Class<T> entityClass)
Create a
MultiIdentifierLoadAccess instance to retrieve multiple entities at once
as specified by primary key values. |
MultiIdentifierLoadAccess |
byMultipleIds(java.lang.String entityName)
Create a
MultiIdentifierLoadAccess instance to retrieve multiple entities at once
as specified by primary key values. |
<T> NaturalIdLoadAccess<T> |
byNaturalId(java.lang.Class<T> entityClass)
Create an
NaturalIdLoadAccess instance to retrieve the specified entity by
its natural id. |
NaturalIdLoadAccess |
byNaturalId(java.lang.String entityName)
Create an
NaturalIdLoadAccess instance to retrieve the specified entity by
its natural id. |
<T> SimpleNaturalIdLoadAccess<T> |
bySimpleNaturalId(java.lang.Class<T> entityClass)
Create an
SimpleNaturalIdLoadAccess instance to retrieve the specified entity by
its simple (single attribute) natural id. |
SimpleNaturalIdLoadAccess |
bySimpleNaturalId(java.lang.String entityName)
Create an
SimpleNaturalIdLoadAccess instance to retrieve the specified entity by
its natural id. |
void |
cancelQuery()
Cancel the execution of the current query.
|
void |
clear()
Completely clear the session.
|
void |
close()
End the session by releasing the JDBC connection and cleaning up.
|
boolean |
contains(java.lang.Object object)
Check if this instance is associated with this Session.
|
Query |
createFilter(java.lang.Object collection,
java.lang.String queryString)
Create a
Query instance for the given collection and filter string. |
void |
delete(java.lang.Object object)
Remove a persistent instance from the datastore.
|
void |
delete(java.lang.String entityName,
java.lang.Object object)
Remove a persistent instance from the datastore.
|
void |
disableFetchProfile(java.lang.String name)
Disable a particular fetch profile on this session.
|
void |
disableFilter(java.lang.String filterName)
Disable the named filter for the current session.
|
java.sql.Connection |
disconnect()
Disconnect the session from its underlying JDBC connection.
|
<T> T |
doReturningWork(ReturningWork<T> work)
Controller for allowing users to perform JDBC related work using the Connection managed by this Session.
|
void |
doWork(Work work)
Controller for allowing users to perform JDBC related work using the Connection managed by this Session.
|
void |
enableFetchProfile(java.lang.String name)
Enable a particular fetch profile on this session.
|
Filter |
enableFilter(java.lang.String filterName)
Enable the named filter for this current session.
|
void |
evict(java.lang.Object object)
Remove this instance from the session cache.
|
void |
flush()
Force this session to flush.
|
<T> T |
get(java.lang.Class<T> entityType,
java.io.Serializable id)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
<T> T |
get(java.lang.Class<T> entityType,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
<T> T |
get(java.lang.Class<T> entityType,
java.io.Serializable id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
java.lang.Object |
get(java.lang.String entityName,
java.io.Serializable id)
Return the persistent instance of the given named entity with the given identifier,
or null if there is no such persistent instance.
|
java.lang.Object |
get(java.lang.String entityName,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
java.lang.Object |
get(java.lang.String entityName,
java.io.Serializable id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
CacheMode |
getCacheMode()
Get the current cache mode.
|
LockMode |
getCurrentLockMode(java.lang.Object object)
Determine the current lock mode of the given object.
|
Filter |
getEnabledFilter(java.lang.String filterName)
Retrieve a currently enabled filter by name.
|
java.lang.String |
getEntityName(java.lang.Object object)
Return the entity name for a persistent entity.
|
FlushMode |
getFlushMode()
Get the current flush mode for this session.
|
java.io.Serializable |
getIdentifier(java.lang.Object object)
Return the identifier value of the given entity as associated with this
session.
|
LobHelper |
getLobHelper()
Retrieve this session's helper/delegate for creating LOB instances.
|
SessionFactory |
getSessionFactory()
Get the session factory which created this session.
|
SessionStatistics |
getStatistics()
Get the statistics for this session.
|
TypeHelper |
getTypeHelper()
Convenience access to the
TypeHelper associated with this session's SessionFactory . |
boolean |
isConnected()
Check if the session is currently connected.
|
boolean |
isDefaultReadOnly()
Will entities and proxies that are loaded into this session be made
read-only by default?
To determine the read-only/modifiable setting for a particular entity
or proxy:
|
boolean |
isDirty()
Does this session contain any changes which must be synchronized with
the database? In other words, would any DML operations be executed if
we flushed this session?
|
boolean |
isFetchProfileEnabled(java.lang.String name)
Is a particular fetch profile enabled on this session?
|
boolean |
isOpen()
Check if the session is still open.
|
boolean |
isReadOnly(java.lang.Object entityOrProxy)
Is the specified entity or proxy read-only?
To get the default read-only/modifiable setting used for
entities and proxies that are loaded into the session:
|
<T> T |
load(java.lang.Class<T> theClass,
java.io.Serializable id)
Return the persistent instance of the given entity class with the given identifier,
assuming that the instance exists.
|
<T> T |
load(java.lang.Class<T> theClass,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode, assuming the instance exists.
|
<T> T |
load(java.lang.Class<T> theClass,
java.io.Serializable id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode, assuming the instance exists.
|
void |
load(java.lang.Object object,
java.io.Serializable id)
Read the persistent state associated with the given identifier into the given transient
instance.
|
java.lang.Object |
load(java.lang.String entityName,
java.io.Serializable id)
Return the persistent instance of the given entity class with the given identifier,
assuming that the instance exists.
|
java.lang.Object |
load(java.lang.String entityName,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode, assuming the instance exists.
|
java.lang.Object |
load(java.lang.String entityName,
java.io.Serializable id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode, assuming the instance exists.
|
void |
lock(java.lang.Object object,
LockMode lockMode)
Obtain the specified lock level upon the given object.
|
void |
lock(java.lang.String entityName,
java.lang.Object object,
LockMode lockMode)
Obtain the specified lock level upon the given object.
|
java.lang.Object |
merge(java.lang.Object object)
Copy the state of the given object onto the persistent object with the same
identifier.
|
java.lang.Object |
merge(java.lang.String entityName,
java.lang.Object object)
Copy the state of the given object onto the persistent object with the same
identifier.
|
void |
persist(java.lang.Object object)
Make a transient instance persistent.
|
void |
persist(java.lang.String entityName,
java.lang.Object object)
Make a transient instance persistent.
|
void |
reconnect(java.sql.Connection connection)
Reconnect to the given JDBC connection.
|
void |
refresh(java.lang.Object object)
Re-read the state of the given instance from the underlying database.
|
void |
refresh(java.lang.Object object,
LockMode lockMode)
Re-read the state of the given instance from the underlying database, with
the given LockMode.
|
void |
refresh(java.lang.Object object,
LockOptions lockOptions)
Re-read the state of the given instance from the underlying database, with
the given LockMode.
|
void |
refresh(java.lang.String entityName,
java.lang.Object object)
Re-read the state of the given instance from the underlying database.
|
void |
refresh(java.lang.String entityName,
java.lang.Object object,
LockOptions lockOptions)
Re-read the state of the given instance from the underlying database, with
the given LockMode.
|
void |
replicate(java.lang.Object object,
ReplicationMode replicationMode)
Persist the state of the given detached instance, reusing the current
identifier value.
|
void |
replicate(java.lang.String entityName,
java.lang.Object object,
ReplicationMode replicationMode)
Persist the state of the given detached instance, reusing the current
identifier value.
|
java.io.Serializable |
save(java.lang.Object object)
Persist the given transient instance, first assigning a generated identifier.
|
java.io.Serializable |
save(java.lang.String entityName,
java.lang.Object object)
Persist the given transient instance, first assigning a generated identifier.
|
void |
saveOrUpdate(java.lang.Object object)
Either
save(Object) or update(Object) the given
instance, depending upon resolution of the unsaved-value checks (see the
manual for discussion of unsaved-value checking). |
void |
saveOrUpdate(java.lang.String entityName,
java.lang.Object object)
Either
save(String, Object) or update(String, Object)
the given instance, depending upon resolution of the unsaved-value checks
(see the manual for discussion of unsaved-value checking). |
SharedSessionBuilder |
sessionWithOptions()
Obtain a
Session builder with the ability to grab certain information from this session. |
void |
setCacheMode(CacheMode cacheMode)
Set the cache mode.
|
void |
setDefaultReadOnly(boolean readOnly)
Change the default for entities and proxies loaded into this session
from modifiable to read-only mode, or from modifiable to read-only mode.
|
void |
setFlushMode(FlushMode flushMode)
Set the flush mode for this session.
|
void |
setReadOnly(java.lang.Object entityOrProxy,
boolean readOnly)
Set an unmodified persistent object to read-only mode, or a read-only
object to modifiable mode.
|
void |
update(java.lang.Object object)
Update the persistent instance with the identifier of the given detached
instance.
|
void |
update(java.lang.String entityName,
java.lang.Object object)
Update the persistent instance with the identifier of the given detached
instance.
|
beginTransaction, createCriteria, createCriteria, createCriteria, createCriteria, createQuery, createSQLQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, getNamedProcedureCall, getNamedQuery, getTenantIdentifier, getTransaction
SharedSessionBuilder sessionWithOptions()
Session
builder with the ability to grab certain information from this session.void flush() throws HibernateException
setFlushMode(FlushMode)
,
Transaction.commit()
calls this method).
Flushing is the process of synchronizing the underlying persistent
store with persistable state held in memory.HibernateException
- Indicates problems flushing the session or
talking to the database.void setFlushMode(FlushMode flushMode)
FlushMode.MANUAL
at the start of the session (in
order to achieve some extra performance).flushMode
- the new flush modeFlushMode
FlushMode getFlushMode()
void setCacheMode(CacheMode cacheMode)
cacheMode
- The new cache mode.CacheMode getCacheMode()
SessionFactory getSessionFactory()
SessionFactory
void close() throws HibernateException
disconnect()
it.close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
HibernateException
- Indicates problems cleaning up.void cancelQuery() throws HibernateException
HibernateException
- There was a problem canceling the queryboolean isOpen()
boolean isConnected()
boolean isDirty() throws HibernateException
HibernateException
- could not perform dirtying checkingboolean isDefaultReadOnly()
isReadOnly(Object)
void setDefaultReadOnly(boolean readOnly)
readOnly
- true, the default for loaded entities/proxies is read-only;
false, the default for loaded entities/proxies is modifiableTo override this session's read-only/modifiable setting for entities
and proxies loaded by a Query:
,
Query.setReadOnly(boolean)
java.io.Serializable getIdentifier(java.lang.Object object)
object
- a persistent instanceTransientObjectException
- if the instance is transient or associated with
a different sessionboolean contains(java.lang.Object object)
object
- an instance of a persistent classvoid evict(java.lang.Object object)
object
- The entity to evictjava.lang.NullPointerException
- if the passed object is null
java.lang.IllegalArgumentException
- if the passed object is not defined as an entity<T> T load(java.lang.Class<T> theClass, java.io.Serializable id, LockMode lockMode)
load(Class, Serializable, LockOptions)
theClass
- a persistent classid
- a valid identifier of an existing persistent instance of the classlockMode
- the lock levelload(Class, Serializable, LockOptions)
<T> T load(java.lang.Class<T> theClass, java.io.Serializable id, LockOptions lockOptions)
theClass
- a persistent classid
- a valid identifier of an existing persistent instance of the classlockOptions
- contains the lock leveljava.lang.Object load(java.lang.String entityName, java.io.Serializable id, LockMode lockMode)
load(String, Serializable, LockOptions)
entityName
- a persistent classid
- a valid identifier of an existing persistent instance of the classlockMode
- the lock levelload(String, Serializable, LockOptions)
java.lang.Object load(java.lang.String entityName, java.io.Serializable id, LockOptions lockOptions)
entityName
- a persistent classid
- a valid identifier of an existing persistent instance of the classlockOptions
- contains the lock level<T> T load(java.lang.Class<T> theClass, java.io.Serializable id)
theClass
- a persistent classid
- a valid identifier of an existing persistent instance of the classjava.lang.Object load(java.lang.String entityName, java.io.Serializable id)
entityName
- a persistent classid
- a valid identifier of an existing persistent instance of the classvoid load(java.lang.Object object, java.io.Serializable id)
object
- an "empty" instance of the persistent classid
- a valid identifier of an existing persistent instance of the classvoid replicate(java.lang.Object object, ReplicationMode replicationMode)
cascade="replicate"
object
- a detached instance of a persistent classreplicationMode
- The replication mode to usevoid replicate(java.lang.String entityName, java.lang.Object object, ReplicationMode replicationMode)
cascade="replicate"
entityName
- The entity nameobject
- a detached instance of a persistent classreplicationMode
- The replication mode to usejava.io.Serializable save(java.lang.Object object)
cascade="save-update"
object
- a transient instance of a persistent classjava.io.Serializable save(java.lang.String entityName, java.lang.Object object)
cascade="save-update"
entityName
- The entity nameobject
- a transient instance of a persistent classvoid saveOrUpdate(java.lang.Object object)
save(Object)
or update(Object)
the given
instance, depending upon resolution of the unsaved-value checks (see the
manual for discussion of unsaved-value checking).
This operation cascades to associated instances if the association is mapped
with cascade="save-update"
object
- a transient or detached instance containing new or updated statesave(java.lang.Object)
,
update(Object object)
void saveOrUpdate(java.lang.String entityName, java.lang.Object object)
save(String, Object)
or update(String, Object)
the given instance, depending upon resolution of the unsaved-value checks
(see the manual for discussion of unsaved-value checking).
This operation cascades to associated instances if the association is mapped
with cascade="save-update"
entityName
- The entity nameobject
- a transient or detached instance containing new or updated statesave(String,Object)
,
update(String,Object)
void update(java.lang.Object object)
cascade="save-update"
object
- a detached instance containing updated statevoid update(java.lang.String entityName, java.lang.Object object)
cascade="save-update"
entityName
- The entity nameobject
- a detached instance containing updated statejava.lang.Object merge(java.lang.Object object)
cascade="merge"
The semantics of this method are defined by JSR-220.object
- a detached instance with state to be copiedjava.lang.Object merge(java.lang.String entityName, java.lang.Object object)
cascade="merge"
The semantics of this method are defined by JSR-220.entityName
- The entity nameobject
- a detached instance with state to be copiedvoid persist(java.lang.Object object)
cascade="persist"
The semantics of this method are defined by JSR-220.object
- a transient instance to be made persistentvoid persist(java.lang.String entityName, java.lang.Object object)
cascade="persist"
The semantics of this method are defined by JSR-220.entityName
- The entity nameobject
- a transient instance to be made persistentvoid delete(java.lang.Object object)
cascade="delete"
object
- the instance to be removedvoid delete(java.lang.String entityName, java.lang.Object object)
cascade="delete"
entityName
- The entity name for the instance to be removed.object
- the instance to be removedvoid lock(java.lang.Object object, LockMode lockMode)
Session.LockRequest.lock(Object)
via buildLockRequest(LockOptions)
object
- a persistent or transient instancelockMode
- the lock levelbuildLockRequest(LockOptions)
,
Session.LockRequest.lock(Object)
void lock(java.lang.String entityName, java.lang.Object object, LockMode lockMode)
Session.LockRequest.lock(String, Object)
via buildLockRequest(LockOptions)
entityName
- The name of the entityobject
- a persistent or transient instancelockMode
- the lock levelbuildLockRequest(LockOptions)
,
Session.LockRequest.lock(String, Object)
Session.LockRequest buildLockRequest(LockOptions lockOptions)
session.buildLockRequest().setLockMode(LockMode.PESSIMISTIC_WRITE).setTimeOut(60000).lock(entity);
lockOptions
- contains the lock levelvoid refresh(java.lang.Object object)
object
- a persistent or detached instancevoid refresh(java.lang.String entityName, java.lang.Object object)
entityName
- a persistent classobject
- a persistent or detached instancevoid refresh(java.lang.Object object, LockMode lockMode)
refresh(Object, LockOptions)
object
- a persistent or detached instancelockMode
- the lock mode to userefresh(Object, LockOptions)
void refresh(java.lang.Object object, LockOptions lockOptions)
object
- a persistent or detached instancelockOptions
- contains the lock mode to usevoid refresh(java.lang.String entityName, java.lang.Object object, LockOptions lockOptions)
entityName
- a persistent classobject
- a persistent or detached instancelockOptions
- contains the lock mode to useLockMode getCurrentLockMode(java.lang.Object object)
object
- a persistent instanceQuery createFilter(java.lang.Object collection, java.lang.String queryString)
Query
instance for the given collection and filter string. Contains an implicit FROM
element named this
which refers to the defined table for the collection elements, as well as an implicit
WHERE
restriction for this particular collection instance's key value.collection
- a persistent collectionqueryString
- a Hibernate query fragment.void clear()
<T> T get(java.lang.Class<T> entityType, java.io.Serializable id)
entityType
- The entity typeid
- an identifier<T> T get(java.lang.Class<T> entityType, java.io.Serializable id, LockMode lockMode)
get(Class, Serializable, LockOptions)
entityType
- The entity typeid
- an identifierlockMode
- the lock modeget(Class, Serializable, LockOptions)
<T> T get(java.lang.Class<T> entityType, java.io.Serializable id, LockOptions lockOptions)
entityType
- The entity typeid
- an identifierlockOptions
- the lock modejava.lang.Object get(java.lang.String entityName, java.io.Serializable id)
entityName
- the entity nameid
- an identifierjava.lang.Object get(java.lang.String entityName, java.io.Serializable id, LockMode lockMode)
get(String, Serializable, LockOptions)
entityName
- the entity nameid
- an identifierlockMode
- the lock modeget(String, Serializable, LockOptions)
java.lang.Object get(java.lang.String entityName, java.io.Serializable id, LockOptions lockOptions)
entityName
- the entity nameid
- an identifierlockOptions
- contains the lock modejava.lang.String getEntityName(java.lang.Object object)
object
- a persistent entityIdentifierLoadAccess byId(java.lang.String entityName)
IdentifierLoadAccess
instance to retrieve the specified entity type by
primary key.entityName
- The entity name of the entity type to be retrievedHibernateException
- If the specified entity name cannot be resolved as an entity name<T> MultiIdentifierLoadAccess<T> byMultipleIds(java.lang.Class<T> entityClass)
MultiIdentifierLoadAccess
instance to retrieve multiple entities at once
as specified by primary key values.entityClass
- The entity type to be retrievedHibernateException
- If the specified Class cannot be resolved as a mapped entityMultiIdentifierLoadAccess byMultipleIds(java.lang.String entityName)
MultiIdentifierLoadAccess
instance to retrieve multiple entities at once
as specified by primary key values.entityName
- The entity name of the entity type to be retrievedHibernateException
- If the specified entity name cannot be resolved as an entity name<T> IdentifierLoadAccess<T> byId(java.lang.Class<T> entityClass)
IdentifierLoadAccess
instance to retrieve the specified entity by
primary key.entityClass
- The entity type to be retrievedHibernateException
- If the specified Class cannot be resolved as a mapped entityNaturalIdLoadAccess byNaturalId(java.lang.String entityName)
NaturalIdLoadAccess
instance to retrieve the specified entity by
its natural id.entityName
- The entity name of the entity type to be retrievedHibernateException
- If the specified entity name cannot be resolved as an entity name<T> NaturalIdLoadAccess<T> byNaturalId(java.lang.Class<T> entityClass)
NaturalIdLoadAccess
instance to retrieve the specified entity by
its natural id.entityClass
- The entity type to be retrievedHibernateException
- If the specified Class cannot be resolved as a mapped entitySimpleNaturalIdLoadAccess bySimpleNaturalId(java.lang.String entityName)
SimpleNaturalIdLoadAccess
instance to retrieve the specified entity by
its natural id.entityName
- The entity name of the entity type to be retrievedHibernateException
- If the specified entityClass cannot be resolved as a mapped entity, or if the
entity does not define a natural-id or if its natural-id is made up of multiple attributes.<T> SimpleNaturalIdLoadAccess<T> bySimpleNaturalId(java.lang.Class<T> entityClass)
SimpleNaturalIdLoadAccess
instance to retrieve the specified entity by
its simple (single attribute) natural id.entityClass
- The entity type to be retrievedHibernateException
- If the specified entityClass cannot be resolved as a mapped entity, or if the
entity does not define a natural-id or if its natural-id is made up of multiple attributes.Filter enableFilter(java.lang.String filterName)
filterName
- The name of the filter to be enabled.Filter getEnabledFilter(java.lang.String filterName)
filterName
- The name of the filter to be retrieved.void disableFilter(java.lang.String filterName)
filterName
- The name of the filter to be disabled.SessionStatistics getStatistics()
boolean isReadOnly(java.lang.Object entityOrProxy)
entityOrProxy
- an entity or HibernateProxytrue
if the entity or proxy is read-only, false
if the entity or proxy is modifiable.isDefaultReadOnly()
void setReadOnly(java.lang.Object entityOrProxy, boolean readOnly)
entityOrProxy
- an entity or HibernateProxyreadOnly
- true
if the entity or proxy should be made read-only; false
if the entity or
proxy should be made modifiableTo override this session's read-only/modifiable setting for entities
and proxies loaded by a Query:
,
Query.setReadOnly(boolean)
void doWork(Work work) throws HibernateException
work
- The work to be performed.HibernateException
- Generally indicates wrapped SQLException
<T> T doReturningWork(ReturningWork<T> work) throws HibernateException
ReturningWork.execute(java.sql.Connection)
call.T
- The type of the result returned from the workwork
- The work to be performed.ReturningWork.execute(java.sql.Connection)
.HibernateException
- Generally indicates wrapped SQLException
java.sql.Connection disconnect()
null
reconnect(Connection)
void reconnect(java.sql.Connection connection)
connection
- a JDBC connectiondisconnect()
boolean isFetchProfileEnabled(java.lang.String name) throws UnknownProfileException
name
- The name of the profile to be checked.UnknownProfileException
- Indicates that the given name does not
match any known profile namesfor discussion of this feature
void enableFetchProfile(java.lang.String name) throws UnknownProfileException
name
- The name of the fetch profile to be enabled.UnknownProfileException
- Indicates that the given name does not
match any known profile namesfor discussion of this feature
void disableFetchProfile(java.lang.String name) throws UnknownProfileException
name
- The name of the fetch profile to be disabled.UnknownProfileException
- Indicates that the given name does not
match any known profile namesfor discussion of this feature
TypeHelper getTypeHelper()
TypeHelper
associated with this session's SessionFactory
.
Equivalent to calling getSessionFactory()
.getTypeHelper()
TypeHelper
associated with this session's SessionFactory
LobHelper getLobHelper()
void addEventListeners(SessionEventListener... listeners)
listeners
- The listener(s) to addCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.