Deprecated
as a consequence of Session and HibernateEntityManagerImplementor being deprecated. See corresponding docs for further information.
Session and other parts of Hibernate such as
org.hibernate.type.Type , org.hibernate.persister.entity.EntityPersister
and org.hibernate.persister.collection.CollectionPersister implementations.
A Session, through this interface and SharedSessionContractImplementor, implements:org.hibernate.resource.jdbc.spi.JdbcSessionOwner to drive the behavior of the
org.hibernate.resource.jdbc.spi.JdbcSessionContext delegate
TransactionCoordinatorBuilder.Options
to drive the creation of the TransactionCoordinator delegate
org.hibernate.engine.jdbc.LobCreationContext to act as the context for JDBC LOB instance creation
org.hibernate.type.descriptor.WrapperOptions to fulfill the behavior needed while
binding/extracting values to/from JDBC as part of the Type contracts
org.hibernate.event.spi.EventSource which extends this interface providing
bridge to the event generation features of org.hibernate.event
| Modifier and Type | Method and Description |
|---|---|
| public <T> RootGraphImplementor | createEntityGraph(Class<T>
class of entity graph rootType)Redeclares org. |
| public RootGraphImplementor | createEntityGraph(String
name of an entity graph graphName)Redeclares org. |
| public <T> QueryImplementor | createNamedQuery(String
the name of a query defined in metadata name, Class<T> the type of the query result resultType)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
TypedQuery for executing a
Java Persistence query language named query.
|
| public QueryImplementor | createNamedQuery(String
the name of a query defined in metadata name)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
Query for executing a named query
(in the Java Persistence query language or in native SQL).
|
| public NativeQueryImplementor | createNativeQuery(String
a native SQL query string sqlString)Redeclares org.
Deprecated
as a consequence of
Create an instance of NativeQueryImplementor being deprecated.
Query for executing
a native SQL statement, e.g., for update or delete.
|
| public NativeQueryImplementor | createNativeQuery(String
a native SQL query string sqlString, Class<T> the class of the resulting instance(s) resultClass)Redeclares org.
Deprecated
as a consequence of
Create an instance of NativeQueryImplementor being deprecated.
Query for executing
a native SQL query.
|
| public NativeQueryImplementor | createNativeQuery(String
a native SQL query string sqlString, String the name of the result set mapping resultSetMapping)Redeclares org.
Deprecated
as a consequence of
Create an instance of NativeQueryImplementor being deprecated.
Query for executing
a native SQL query.
|
| public QueryImplementor | createQuery(String
a Java Persistence query string queryString)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
Query for executing a
Java Persistence query language statement.
|
| public <T> QueryImplementor | createQuery(String
a Java Persistence query string queryString, Class<T> the type of the query result resultType)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
TypedQuery for executing a
Java Persistence query language statement.
|
| public <T> QueryImplementor | createQuery(CriteriaQuery<T>
a criteria query object criteriaQuery)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
TypedQuery for executing a
criteria query.
|
| public QueryImplementor | createQuery(CriteriaUpdate<T>
a criteria update query object updateQuery)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
Query for executing a criteria
update query.
|
| public QueryImplementor | createQuery(CriteriaDelete<T>
a criteria delete query object deleteQuery)Redeclares org.
Deprecated
as a consequence of
Create an instance of QueryImplementor being deprecated.
Query for executing a criteria
delete query.
|
| public <T> QueryImplementor | Returns: The typed queryThe criteria query rendered as a JPA QL string jpaqlString, Class<T> The result type (the type expected in the result list) resultClass, Selection<X> The selection(s) selection, HibernateEntityManagerImplementor.The options to use to build the query. queryOptionsRedeclares org.
Deprecated
(since 5.2) - see deprecation note on super
Used during "compiling" a JPA criteria query.
|
| public NativeQueryImplementor | createSQLQuery(String
The SQL query sqlString)Redeclares org. Redeclares as abstract: org.
Deprecated
as a consequence of
Create a NativeQueryImplementor being deprecated.
NativeQuery instance for the given SQL query string.
|
| public void | |
| public void | |
| public ActionQueue | |
| public RootGraphImplementor | getEntityGraph(String
name of an existing entity graph graphName)Redeclares org. |
| public NativeQueryImplementor | getNamedNativeQuery(String
The name of the pre-defined query name)Redeclares org.
Deprecated
as a consequence of
Get a NativeQuery instance for a named native SQL query
NativeQueryImplementor being deprecated.
|
| public QueryImplementor | getNamedQuery(String
the name of a pre-defined, named query queryName)Redeclares org.
Deprecated
as a consequence of
Create a QueryImplementor being deprecated.
Query instance for the named query.
|
| public NativeQueryImplementor | getNamedSQLQuery(String
The name of the pre-defined query name)Redeclares as abstract: org.
Deprecated
as a consequence of
Get a NativeQuery instance for a named native SQL query
NativeQueryImplementor being deprecated.
|
| public SessionFactoryImplementor | getSessionFactory()
Redeclares org.
Deprecated
as a consequence of
Get the session factory which created this session.
SessionFactoryImplementor being deprecated.
|
| public boolean | |
| public void | |
| public void | |
| public void | persistOnFlush(String entityName, Object object, Map<K, V> copiedAlready)
Deprecated
OperationalContext should cover this overload I believe; Gail?
|
| public void | |
| public void | removeOrphanBeforeUpdates(String entityName, Object child)
Deprecated
OperationalContext should cover this overload I believe; Gail?
|
| createEntityGraph | back to summary |
|---|---|
| public <T> RootGraphImplementor Redeclares org. Doc from javax. Return a mutable EntityGraph that can be used to dynamically create an EntityGraph.
| |
| createEntityGraph | back to summary |
|---|---|
| public RootGraphImplementor Redeclares org. Doc from javax. Return a mutable copy of the named EntityGraph. If there is no entity graph with the specified name, null is returned.
| |
| createNamedQuery | back to summary |
|---|---|
| public <T> QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createNamedQuery | back to summary |
|---|---|
| public QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createNativeQuery | back to summary |
|---|---|
| public NativeQueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createNativeQuery | back to summary |
|---|---|
| public NativeQueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createNativeQuery | back to summary |
|---|---|
| public NativeQueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createQuery | back to summary |
|---|---|
| public QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createQuery | back to summary |
|---|---|
| public <T> QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createQuery | back to summary |
|---|---|
| public <T> QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createQuery | back to summary |
|---|---|
| public QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createQuery | back to summary |
|---|---|
| public QueryImplementor Redeclares org. Doc from javax. Deprecated as a consequence of Create an instance of
| |
| createQuery | back to summary |
|---|---|
| public <T> QueryImplementor Redeclares org. Doc from org. Deprecated (since 5.2) - see deprecation note on super Used during "compiling" a JPA criteria query.
| |
| createSQLQuery | back to summary |
|---|---|
| public NativeQueryImplementor Redeclares org. Redeclares as abstract: org. Doc from org. Deprecated as a consequence of Create a
| |
| delete | back to summary |
|---|---|
| public void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, Set<E> transientEntities)
Deprecated OperationalContext should cover this overload I believe; Gail?
| |
| forceFlush | back to summary |
|---|---|
| public void forceFlush(EntityEntry e) throws HibernateException | |
| getActionQueue | back to summary |
|---|---|
| public ActionQueue getActionQueue() | |
| getEntityGraph | back to summary |
|---|---|
| public RootGraphImplementor Redeclares org. Doc from javax. Return a named EntityGraph. The returned EntityGraph should be considered immutable.
| |
| getNamedNativeQuery | back to summary |
|---|---|
| public NativeQueryImplementor Redeclares org. Doc from org. Deprecated as a consequence of Get a NativeQuery instance for a named native SQL query
| |
| getNamedQuery | back to summary |
|---|---|
| public QueryImplementor Redeclares org. Doc from org. Deprecated as a consequence of Create a
| |
| getNamedSQLQuery | back to summary |
|---|---|
| public NativeQueryImplementor Redeclares as abstract: org. Doc from org. Deprecated as a consequence of Get a NativeQuery instance for a named native SQL query
| |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getSessionFactory() Redeclares org. Doc from org. Deprecated as a consequence of Get the session factory which created this session.
| |
| isFlushBeforeCompletionEnabled | back to summary |
|---|---|
| public boolean isFlushBeforeCompletionEnabled()
Deprecated (since 5.2) use
| |
| merge | back to summary |
|---|---|
| public void merge(String entityName, Object object, Map<K, V> copiedAlready) throws HibernateException
Deprecated OperationalContext should cover this overload I believe; Gail?
| |
| persist | back to summary |
|---|---|
| public void persist(String entityName, Object object, Map<K, V> createdAlready) throws HibernateException
Deprecated OperationalContext should cover this overload I believe; Gail?
| |
| persistOnFlush | back to summary |
|---|---|
| public void persistOnFlush(String entityName, Object object, Map<K, V> copiedAlready)
Deprecated OperationalContext should cover this overload I believe; Gail?
| |
| refresh | back to summary |
|---|---|
| public void refresh(String entityName, Object object, Map<K, V> refreshedAlready) throws HibernateException
Deprecated OperationalContext should cover this overload I believe; Gail?
| |
| removeOrphanBeforeUpdates | back to summary |
|---|---|
| public void removeOrphanBeforeUpdates(String entityName, Object child)
Deprecated OperationalContext should cover this overload I believe; Gail?
| |