Top Description Methods
org.hibernate.engine.spi

public Interface SessionImplementor

extends Session, SharedSessionContractImplementor, HibernateEntityManagerImplementor
Known Direct Subinterfaces
org.hibernate.event.spi.EventSource
Known Direct Implementers
org.hibernate.internal.AbstractSessionImpl, org.hibernate.internal.SessionImpl, org.hibernate.engine.spi.SessionDelegatorBaseImpl
Imports
java.io.Serializable, java.util.Map, .Set, javax.persistence.criteria.CriteriaDelete, .CriteriaQuery, .CriteriaUpdate, .Selection, org.hibernate.HibernateException, .Session, org.hibernate.graph.RootGraph, org.hibernate.graph.spi.RootGraphImplementor, org.hibernate.jpa.spi.HibernateEntityManagerImplementor, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.spi.NativeQueryImplementor, .QueryImplementor, org.hibernate.resource.transaction.spi.TransactionCoordinator, .TransactionCoordinatorBuilder

Deprecated

as a consequence of Session and HibernateEntityManagerImplementor being deprecated. See corresponding docs for further information.

Defines the "internal contract" for 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: See also org.hibernate.event.spi.EventSource which extends this interface providing bridge to the event generation features of org.hibernate.event
Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public <T> RootGraphImplementor<T>
createEntityGraph(Class<T>
class of entity graph
rootType
)

Redeclares org.hibernate.Session.createEntityGraph, javax.persistence.EntityManager.createEntityGraph.

Return a mutable EntityGraph that can be used to dynamically create an EntityGraph.
public RootGraphImplementor<?>
createEntityGraph(String
name of an entity graph
graphName
)

Redeclares org.hibernate.Session.createEntityGraph, javax.persistence.EntityManager.createEntityGraph.

Return a mutable copy of the named EntityGraph.
public <T> QueryImplementor<T>
createNamedQuery(String
the name of a query defined in metadata
name
,
Class<T>
the type of the query result
resultType
)

Redeclares org.hibernate.Session.createNamedQuery, org.hibernate.query.QueryProducer.createNamedQuery, org.hibernate.query.spi.QueryProducerImplementor.createNamedQuery, javax.persistence.EntityManager.createNamedQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of TypedQuery for executing a Java Persistence query language named query.
public QueryImplementor<R>
createNamedQuery(String
the name of a query defined in metadata
name
)

Redeclares org.hibernate.query.QueryProducer.createNamedQuery, javax.persistence.EntityManager.createNamedQuery, org.hibernate.query.spi.QueryProducerImplementor.createNamedQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL).
public NativeQueryImplementor<T>
createNativeQuery(String
a native SQL query string
sqlString
)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery, javax.persistence.EntityManager.createNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create an instance of Query for executing a native SQL statement, e.g., for update or delete.
public NativeQueryImplementor<T>
createNativeQuery(String
a native SQL query string
sqlString
,
Class<T>
the class of the resulting instance(s)
resultClass
)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery, javax.persistence.EntityManager.createNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create an instance of Query for executing a native SQL query.
public NativeQueryImplementor<T>
createNativeQuery(String
a native SQL query string
sqlString
,
String
the name of the result set mapping
resultSetMapping
)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery, javax.persistence.EntityManager.createNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create an instance of Query for executing a native SQL query.
public QueryImplementor<R>
createQuery(String
a Java Persistence query string
queryString
)

Redeclares org.hibernate.SharedSessionContract.createQuery, javax.persistence.EntityManager.createQuery, org.hibernate.query.QueryProducer.createQuery, org.hibernate.query.spi.QueryProducerImplementor.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of Query for executing a Java Persistence query language statement.
public <T> QueryImplementor<T>
createQuery(String
a Java Persistence query string
queryString
,
Class<T>
the type of the query result
resultType
)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, org.hibernate.query.spi.QueryProducerImplementor.createQuery, javax.persistence.EntityManager.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of TypedQuery for executing a Java Persistence query language statement.
public <T> QueryImplementor<T>
createQuery(CriteriaQuery<T>
a criteria query object
criteriaQuery
)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, javax.persistence.EntityManager.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of TypedQuery for executing a criteria query.
public QueryImplementor<R>
createQuery(CriteriaUpdate<T>
a criteria update query object
updateQuery
)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, javax.persistence.EntityManager.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of Query for executing a criteria update query.
public QueryImplementor<R>
createQuery(CriteriaDelete<T>
a criteria delete query object
deleteQuery
)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, javax.persistence.EntityManager.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create an instance of Query for executing a criteria delete query.
public <T> QueryImplementor<T>

Returns:

The typed query
createQuery
(String
The 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.QueryOptions
The options to use to build the query.
queryOptions
)

Redeclares org.hibernate.engine.spi.SharedSessionContractImplementor.createQuery, org.hibernate.jpa.spi.HibernateEntityManagerImplementor.createQuery.

Deprecated (since 5.2) - see deprecation note on super
Used during "compiling" a JPA criteria query.
public NativeQueryImplementor<T>
createSQLQuery(String
The SQL query
sqlString
)

Redeclares org.hibernate.Session.createSQLQuery.

Redeclares as abstract: org.hibernate.query.QueryProducer.createSQLQuery, org.hibernate.query.spi.QueryProducerImplementor.createSQLQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create a NativeQuery instance for the given SQL query string.
public void
delete(String entityName, Object child, boolean isCascadeDeleteEnabled, Set<E> transientEntities)

Deprecated OperationalContext should cover this overload I believe; Gail?
public void
public ActionQueue
public RootGraphImplementor<?>
getEntityGraph(String
name of an existing entity graph
graphName
)

Redeclares org.hibernate.Session.getEntityGraph, javax.persistence.EntityManager.getEntityGraph.

Return a named EntityGraph.
public NativeQueryImplementor<T>
getNamedNativeQuery(String
The name of the pre-defined query
name
)

Redeclares org.hibernate.query.QueryProducer.getNamedNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.getNamedNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Get a NativeQuery instance for a named native SQL query
public QueryImplementor<R>
getNamedQuery(String
the name of a pre-defined, named query
queryName
)

Redeclares org.hibernate.SharedSessionContract.getNamedQuery, org.hibernate.query.QueryProducer.getNamedQuery, org.hibernate.query.spi.QueryProducerImplementor.getNamedQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create a Query instance for the named query.
public NativeQueryImplementor<T>
getNamedSQLQuery(String
The name of the pre-defined query
name
)

Redeclares as abstract: org.hibernate.query.QueryProducer.getNamedSQLQuery, org.hibernate.query.spi.QueryProducerImplementor.getNamedSQLQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Get a NativeQuery instance for a named native SQL query
public SessionFactoryImplementor
getSessionFactory()

Redeclares org.hibernate.Session.getSessionFactory.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Get the session factory which created this session.
public boolean
isFlushBeforeCompletionEnabled()

Deprecated (since 5.2) use getHibernateFlushMode() instead.
public void
merge(String entityName, Object object, Map<K, V> copiedAlready)

Deprecated OperationalContext should cover this overload I believe; Gail?
public void
persist(String entityName, Object object, Map<K, V> createdAlready)

Deprecated OperationalContext should cover this overload I believe; Gail?
public void
persistOnFlush(String entityName, Object object, Map<K, V> copiedAlready)

Deprecated OperationalContext should cover this overload I believe; Gail?
public void
refresh(String entityName, Object object, Map<K, V> refreshedAlready)

Deprecated OperationalContext should cover this overload I believe; Gail?
public void
removeOrphanBeforeUpdates(String entityName, Object child)

Deprecated OperationalContext should cover this overload I believe; Gail?
Inherited from org.hibernate.engine.spi.SharedSessionContractImplementor:
accessTransactionafterScrollOperationbestGuessEntityNamecheckOpencheckOpencheckTransactionNeededForUpdateOperationconnectionexecuteNativeUpdateexecuteUpdateflushgenerateEntityKeygetCacheModegetCacheTransactionSynchronizationgetConfiguredJdbcBatchSizegetContextEntityIdentifiergetDontFlushFromFindgetEntityPersistergetEntityUsingInterceptorgetEventListenerManagergetExceptionConvertergetFactorygetFlushModegetHibernateFlushModegetInterceptorgetJdbcCoordinatorgetJdbcServicesgetLoadQueryInfluencersgetPersistenceContextgetPersistenceContextInternalgetSessionIdentifiergetTenantIdentifiergetTimestampgetTransactionStartTimestampguessEntityNameimmediateLoadinitializeCollectioninstantiateinstantiateinternalLoadisAutoCloseSessionEnabledisClosedisEnforcingFetchGraphisEventSourceisOpenOrWaitingForAutoCloseisQueryParametersValidationEnabledisTransactionInProgressiterateiterateFilterlistlistlistlistCustomQuerylistFiltermarkForRollbackOnlyscrollscrollscrollscrollCustomQuerysetAutoClearsetCacheModesetEnforcingFetchGraphsetFlushModesetHibernateFlushModeshouldAutoClose
Inherited from org.hibernate.jpa.spi.HibernateEntityManagerImplementor:
buildLockOptionscheckOpengetLockRequestgetSessionisTransactionInProgressmarkForRollbackOnly
Inherited from org.hibernate.Session:
addEventListenersbuildLockRequestbyIdbyIdbyMultipleIdsbyMultipleIdsbyNaturalIdbyNaturalIdbySimpleNaturalIdbySimpleNaturalIdcancelQueryclearcontainscreateFilterdeletedeletedisableFetchProfiledisableFilterdisconnectenableFetchProfileenableFilterevictflushgetgetgetgetgetgetgetCacheModegetCurrentLockModegetEnabledFiltergetEntityGraphsgetEntityNamegetFlushModegetHibernateFlushModegetIdentifiergetLobHelpergetReferencegetStatisticsgetTypeHelperisDefaultReadOnlyisDirtyisFetchProfileEnabledisReadOnlyloadloadloadloadloadloadloadlocklockmergemergepersistpersistreconnectrefreshrefreshrefreshrefreshrefreshreplicatereplicatesavesavesaveOrUpdatesaveOrUpdatesessionWithOptionssetCacheModesetDefaultReadOnlysetFlushModesetHibernateFlushModesetReadOnlyupdateupdate

Method Detail

createEntityGraphback to summary
public <T> RootGraphImplementor<T> createEntityGraph(Class<T> rootType)

Redeclares org.hibernate.Session.createEntityGraph, javax.persistence.EntityManager.createEntityGraph.

Doc from javax.persistence.EntityManager.createEntityGraph.

Return a mutable EntityGraph that can be used to dynamically create an EntityGraph.

Parameters
rootType:Class<T>

class of entity graph

Returns:RootGraphImplementor<T>

entity graph

Annotations
@Override
createEntityGraphback to summary
public RootGraphImplementor<?> createEntityGraph(String graphName)

Redeclares org.hibernate.Session.createEntityGraph, javax.persistence.EntityManager.createEntityGraph.

Doc from javax.persistence.EntityManager.createEntityGraph.

Return a mutable copy of the named EntityGraph. If there is no entity graph with the specified name, null is returned.

Parameters
graphName:String

name of an entity graph

Returns:RootGraphImplementor<?>

entity graph

Annotations
@Override
createNamedQueryback to summary
public <T> QueryImplementor<T> createNamedQuery(String name, Class<T> resultType)

Redeclares org.hibernate.Session.createNamedQuery, org.hibernate.query.QueryProducer.createNamedQuery, org.hibernate.query.spi.QueryProducerImplementor.createNamedQuery, javax.persistence.EntityManager.createNamedQuery.

Doc from javax.persistence.EntityManager.createNamedQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of TypedQuery for executing a Java Persistence query language named query. The select list of the query must contain only a single item, which must be assignable to the type specified by the resultClass argument.

Parameters
name:String

the name of a query defined in metadata

resultType:Class<T>

the type of the query result

Returns:QueryImplementor<T>

the new query instance

Annotations
@Override
createNamedQueryback to summary
public QueryImplementor<R> createNamedQuery(String name)

Redeclares org.hibernate.query.QueryProducer.createNamedQuery, javax.persistence.EntityManager.createNamedQuery, org.hibernate.query.spi.QueryProducerImplementor.createNamedQuery.

Doc from javax.persistence.EntityManager.createNamedQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL).

Parameters
name:String

the name of a query defined in metadata

Returns:QueryImplementor<R>

the new query instance

Annotations
@Override
createNativeQueryback to summary
public NativeQueryImplementor<T> createNativeQuery(String sqlString)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery, javax.persistence.EntityManager.createNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery.

Doc from javax.persistence.EntityManager.createNativeQuery.

Deprecated

as a consequence of NativeQueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a native SQL statement, e.g., for update or delete. If the query is not an update or delete query, query execution will result in each row of the SQL result being returned as a result of type Object[] (or a result of type Object if there is only one column in the select list.) Column values are returned in the order of their appearance in the select list and default JDBC type mappings are applied.

Parameters
sqlString:String

a native SQL query string

Returns:NativeQueryImplementor<T>

the new query instance

Annotations
@Override
createNativeQueryback to summary
public NativeQueryImplementor<T> createNativeQuery(String sqlString, Class<T> resultClass)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery, javax.persistence.EntityManager.createNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery.

Doc from javax.persistence.EntityManager.createNativeQuery.

Deprecated

as a consequence of NativeQueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a native SQL query.

Parameters
sqlString:String

a native SQL query string

resultClass:Class<T>

the class of the resulting instance(s)

Returns:NativeQueryImplementor<T>

the new query instance

Annotations
@Override
createNativeQueryback to summary
public NativeQueryImplementor<T> createNativeQuery(String sqlString, String resultSetMapping)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery, javax.persistence.EntityManager.createNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery.

Doc from javax.persistence.EntityManager.createNativeQuery.

Deprecated

as a consequence of NativeQueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a native SQL query.

Parameters
sqlString:String

a native SQL query string

resultSetMapping:String

the name of the result set mapping

Returns:NativeQueryImplementor<T>

the new query instance

Annotations
@Override
createQueryback to summary
public QueryImplementor<R> createQuery(String queryString)

Redeclares org.hibernate.SharedSessionContract.createQuery, javax.persistence.EntityManager.createQuery, org.hibernate.query.QueryProducer.createQuery, org.hibernate.query.spi.QueryProducerImplementor.createQuery.

Doc from javax.persistence.EntityManager.createQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a Java Persistence query language statement.

Parameters
queryString:String

a Java Persistence query string

Returns:QueryImplementor<R>

the new query instance

Annotations
@Override
createQueryback to summary
public <T> QueryImplementor<T> createQuery(String queryString, Class<T> resultType)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, org.hibernate.query.spi.QueryProducerImplementor.createQuery, javax.persistence.EntityManager.createQuery.

Doc from javax.persistence.EntityManager.createQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of TypedQuery for executing a Java Persistence query language statement. The select list of the query must contain only a single item, which must be assignable to the type specified by the resultClass argument.

Parameters
queryString:String

a Java Persistence query string

resultType:Class<T>

the type of the query result

Returns:QueryImplementor<T>

the new query instance

Annotations
@Override
createQueryback to summary
public <T> QueryImplementor<T> createQuery(CriteriaQuery<T> criteriaQuery)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, javax.persistence.EntityManager.createQuery.

Doc from javax.persistence.EntityManager.createQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of TypedQuery for executing a criteria query.

Parameters
criteriaQuery:CriteriaQuery<T>

a criteria query object

Returns:QueryImplementor<T>

the new query instance

Annotations
@Override
createQueryback to summary
public QueryImplementor<R> createQuery(CriteriaUpdate<T> updateQuery)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, javax.persistence.EntityManager.createQuery.

Doc from javax.persistence.EntityManager.createQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a criteria update query.

Parameters
updateQuery:CriteriaUpdate<T>

a criteria update query object

Returns:QueryImplementor<R>

the new query instance

Annotations
@Override
createQueryback to summary
public QueryImplementor<R> createQuery(CriteriaDelete<T> deleteQuery)

Redeclares org.hibernate.Session.createQuery, org.hibernate.query.QueryProducer.createQuery, javax.persistence.EntityManager.createQuery.

Doc from javax.persistence.EntityManager.createQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create an instance of Query for executing a criteria delete query.

Parameters
deleteQuery:CriteriaDelete<T>

a criteria delete query object

Returns:QueryImplementor<R>

the new query instance

Annotations
@Override
createQueryback to summary
public <T> QueryImplementor<T> createQuery(String jpaqlString, Class<T> resultClass, Selection<X> selection, HibernateEntityManagerImplementor.QueryOptions queryOptions)

Redeclares org.hibernate.engine.spi.SharedSessionContractImplementor.createQuery, org.hibernate.jpa.spi.HibernateEntityManagerImplementor.createQuery.

Doc from org.hibernate.jpa.spi.HibernateEntityManagerImplementor.createQuery.

Deprecated

(since 5.2) - see deprecation note on super

Used during "compiling" a JPA criteria query.

Parameters
<T>
The query type
jpaqlString:String

The criteria query rendered as a JPA QL string

resultClass:Class<T>

The result type (the type expected in the result list)

selection:Selection<X>

The selection(s)

queryOptions:HibernateEntityManagerImplementor.QueryOptions

The options to use to build the query.

Returns:QueryImplementor<T>

The typed query

Annotations
@Deprecated
@Override
createSQLQueryback to summary
public NativeQueryImplementor<T> createSQLQuery(String sqlString)

Redeclares org.hibernate.Session.createSQLQuery.

Redeclares as abstract: org.hibernate.query.QueryProducer.createSQLQuery, org.hibernate.query.spi.QueryProducerImplementor.createSQLQuery.

Doc from org.hibernate.Session.createSQLQuery.

Deprecated

as a consequence of NativeQueryImplementor being deprecated. See corresponding docs for further information.

Create a NativeQuery instance for the given SQL query string.

Parameters
sqlString:String

The SQL query

Returns:NativeQueryImplementor<T>

The query instance for manipulation and execution

Annotations
@Override
deleteback to summary
public void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, Set<E> transientEntities)

Deprecated

OperationalContext should cover this overload I believe; Gail?

Annotations
@Deprecated
forceFlushback to summary
public void forceFlush(EntityEntry e) throws HibernateException
getActionQueueback to summary
public ActionQueue getActionQueue()
getEntityGraphback to summary
public RootGraphImplementor<?> getEntityGraph(String graphName)

Redeclares org.hibernate.Session.getEntityGraph, javax.persistence.EntityManager.getEntityGraph.

Doc from javax.persistence.EntityManager.getEntityGraph.

Return a named EntityGraph. The returned EntityGraph should be considered immutable.

Parameters
graphName:String

name of an existing entity graph

Returns:RootGraphImplementor<?>

named entity graph

Annotations
@Override
getNamedNativeQueryback to summary
public NativeQueryImplementor<T> getNamedNativeQuery(String name)

Redeclares org.hibernate.query.QueryProducer.getNamedNativeQuery, org.hibernate.query.spi.QueryProducerImplementor.getNamedNativeQuery.

Doc from org.hibernate.query.QueryProducer.getNamedNativeQuery.

Deprecated

as a consequence of NativeQueryImplementor being deprecated. See corresponding docs for further information.

Get a NativeQuery instance for a named native SQL query

Parameters
name:String

The name of the pre-defined query

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override
getNamedQueryback to summary
public QueryImplementor<R> getNamedQuery(String queryName)

Redeclares org.hibernate.SharedSessionContract.getNamedQuery, org.hibernate.query.QueryProducer.getNamedQuery, org.hibernate.query.spi.QueryProducerImplementor.getNamedQuery.

Doc from org.hibernate.query.QueryProducer.getNamedQuery.

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Create a Query instance for the named query.

Parameters
queryName:String

the name of a pre-defined, named query

Returns:QueryImplementor<R>

The Query instance for manipulation and execution

Annotations
@Override
getNamedSQLQueryback to summary
public NativeQueryImplementor<T> getNamedSQLQuery(String name)

Redeclares as abstract: org.hibernate.query.QueryProducer.getNamedSQLQuery, org.hibernate.query.spi.QueryProducerImplementor.getNamedSQLQuery.

Doc from org.hibernate.query.QueryProducer.getNamedSQLQuery.

Deprecated

as a consequence of NativeQueryImplementor being deprecated. See corresponding docs for further information.

Get a NativeQuery instance for a named native SQL query

Parameters
name:String

The name of the pre-defined query

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override
getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Redeclares org.hibernate.Session.getSessionFactory.

Doc from org.hibernate.Session.getSessionFactory.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Get the session factory which created this session.

Returns:SessionFactoryImplementor

The session factory.

Annotations
@Override
isFlushBeforeCompletionEnabledback to summary
public boolean isFlushBeforeCompletionEnabled()

Deprecated

(since 5.2) use getHibernateFlushMode() instead.

Annotations
@Deprecated
mergeback to summary
public void merge(String entityName, Object object, Map<K, V> copiedAlready) throws HibernateException

Deprecated

OperationalContext should cover this overload I believe; Gail?

Annotations
@Deprecated
persistback to summary
public void persist(String entityName, Object object, Map<K, V> createdAlready) throws HibernateException

Deprecated

OperationalContext should cover this overload I believe; Gail?

Annotations
@Deprecated
persistOnFlushback to summary
public void persistOnFlush(String entityName, Object object, Map<K, V> copiedAlready)

Deprecated

OperationalContext should cover this overload I believe; Gail?

Annotations
@Deprecated
refreshback to summary
public void refresh(String entityName, Object object, Map<K, V> refreshedAlready) throws HibernateException

Deprecated

OperationalContext should cover this overload I believe; Gail?

Annotations
@Deprecated
removeOrphanBeforeUpdatesback to summary
public void removeOrphanBeforeUpdates(String entityName, Object child)

Deprecated

OperationalContext should cover this overload I believe; Gail?

Annotations
@Deprecated