Session and other parts of Hibernate
including implementors of org.hibernate.type.Type , EntityPersister,
and org.hibernate.persister.collection.CollectionPersister .
The Session, via this interface and SharedSessionContractImplementor,
implements:
JdbcSessionOwner, and so the session also acts as the orchestrator
of a "JDBC session", and may be used to construct a JdbcCoordinator.
TransactionCoordinatorBuilder.Options , allowing the session to control
the creation of the TransactionCoordinator delegate when it is passed
as an argument to
org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder#buildTransactionCoordinator
LobCreationContext, and so the session may act as the context for
JDBC LOB instance creation.
WrapperOptions, and so the session may influence the process of binding
and extracting values to and from JDBC, which is performed by implementors of
org.hibernate.type.descriptor.jdbc.JdbcType .
org.hibernate.event.spi.EventSource which extends this interface
provides a bridge to the event generation features of org.hibernate.event .
| Modifier and Type | Method and Description |
|---|---|
| public default SessionImplementor | asSessionImplementor()
Overrides default org. SessionImplementor, if possible.
|
| public <T> RootGraphImplementor | createEntityGraph(Class<T>
the root entity class of the graph rootType)Redeclares org. EntityGraph with only a root node.
|
| public RootGraphImplementor | createEntityGraph(String
the name of the graph graphName)Redeclares org. EntityGraph,
or return null if there is no graph with the given
name.
|
| public void | delete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)
Deprecated
OperationalContext should cover this overload I believe
|
| public void | |
| public void | |
| public ActionQueue | |
| public RootGraphImplementor | getEntityGraph(String
the name of the graph graphName)Redeclares org. EntityGraph as an immutable graph,
or return null if there is no graph with the given
name.
|
| public default SessionImplementor | getSession()
Overrides default org. WrapperOptions.
|
| public SessionFactoryImplementor | getSessionFactory()
Redeclares org. Redeclares as abstract: org.
Deprecated
as a consequence of
Get the session factory which created this session.
SessionFactoryImplementor being deprecated.
|
| public Object | instantiate(EntityPersister persister, Object id)
Redeclares org. EntityPersister,
initializing the new instance with the given identifier.
|
| public default boolean | isSessionImplementor()
Overrides default org. SessionImplementor?
|
| public void | lock(String entityName, Object child, LockOptions lockOptions)
Cascade the lock operation to the given child entity. |
| public void | merge(String entityName, Object object, MergeContext copiedAlready)
Deprecated
OperationalContext should cover this overload I believe
|
| public void | persist(String entityName, Object object, PersistContext createdAlready)
Deprecated
OperationalContext should cover this overload I believe
|
| public void | persistOnFlush(String entityName, Object object, PersistContext copiedAlready)
Deprecated
OperationalContext should cover this overload I believe
|
| public void | refresh(String entityName, Object object, RefreshContext refreshedAlready)
Deprecated
OperationalContext should cover this overload I believe
|
| public void | removeOrphanBeforeUpdates(String entityName, Object child)
Deprecated
OperationalContext should cover this overload I believe
|
| asSessionImplementor | back to summary |
|---|---|
| public default SessionImplementor asSessionImplementor() Overrides default org. Doc from org. Cast this object to
| |
| createEntityGraph | back to summary |
|---|---|
| public <T> RootGraphImplementor Redeclares org. Doc from org. Create a new mutable
| |
| createEntityGraph | back to summary |
|---|---|
| public RootGraphImplementor Redeclares org. Doc from org. Create a new mutable copy of the named
| |
| delete | back to summary |
|---|---|
| public void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)
Deprecated OperationalContext should cover this overload I believe
| |
| forceFlush | back to summary |
|---|---|
| public void forceFlush(EntityEntry e) throws HibernateException Initiate a flush to force deletion of a re-persisted entity. | |
| forceFlush | back to summary |
|---|---|
| public void forceFlush(EntityKey e) throws HibernateException Initiate a flush to force deletion of a re-persisted entity. | |
| getActionQueue | back to summary |
|---|---|
| public ActionQueue getActionQueue() Get the | |
| getEntityGraph | back to summary |
|---|---|
| public RootGraphImplementor Redeclares org. Doc from org. Retrieve the named
| |
| getSession | back to summary |
|---|---|
| public default SessionImplementor getSession() Overrides default org. Doc from org. Returns this object, fulfilling the contract of
| |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getSessionFactory() Redeclares org. Redeclares as abstract: org. Doc from org. Deprecated as a consequence of Get the session factory which created this session.
| |
| instantiate | back to summary |
|---|---|
| public Object instantiate(EntityPersister persister, Object id) throws HibernateException Redeclares org. Doc from org. Instantiate the entity class of the given
This is more efficient than | |
| isSessionImplementor | back to summary |
|---|---|
| public default boolean isSessionImplementor() Overrides default org. Doc from org. Does this object implement
| |
| lock | back to summary |
|---|---|
| public void lock(String entityName, Object child, LockOptions lockOptions) Cascade the lock operation to the given child entity. | |
| merge | back to summary |
|---|---|
| public void merge(String entityName, Object object, MergeContext copiedAlready) throws HibernateException
Deprecated OperationalContext should cover this overload I believe
| |
| persist | back to summary |
|---|---|
| public void persist(String entityName, Object object, PersistContext createdAlready) throws HibernateException
Deprecated OperationalContext should cover this overload I believe
| |
| persistOnFlush | back to summary |
|---|---|
| public void persistOnFlush(String entityName, Object object, PersistContext copiedAlready)
Deprecated OperationalContext should cover this overload I believe
| |
| refresh | back to summary |
|---|---|
| public void refresh(String entityName, Object object, RefreshContext refreshedAlready) throws HibernateException
Deprecated OperationalContext should cover this overload I believe
| |
| removeOrphanBeforeUpdates | back to summary |
|---|---|
| public void removeOrphanBeforeUpdates(String entityName, Object child)
Deprecated OperationalContext should cover this overload I believe
| |