@Deprecated public interface HibernateEntityManagerImplementor extends HibernateEntityManager, HibernateEntityManagerFactoryAware
EntityManager
implementation.Modifier and Type | Interface and Description |
---|---|
static interface |
HibernateEntityManagerImplementor.QueryOptions
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
default LockOptions |
buildLockOptions(LockModeType lockModeType,
Map<String,Object> properties)
Deprecated.
Given a JPA
LockModeType and properties, build a Hibernate
LockOptions |
void |
checkOpen(boolean markForRollbackIfClosed)
Deprecated.
Used to ensure the EntityManager is open, throwing IllegalStateException if it is closed.
|
<T> Query<T> |
createQuery(String jpaqlString,
Class<T> resultClass,
Selection selection,
HibernateEntityManagerImplementor.QueryOptions queryOptions)
Deprecated.
(since 5.2) this method form is used to construct a "compiled" representation of
a JPA Criteria query. However it assumes the old yucky implementation of "compilation" that
converted the Criteria into a HQL/JPQL string. In 6.0 that is re-written from scratch to
compile to SQM, and so this method would not be needed in 6.0
|
LockOptions |
getLockRequest(LockModeType lockModeType,
Map<String,Object> properties)
Deprecated.
(since 5.2) use
buildLockOptions(LockModeType, Map) instead |
SessionImplementor |
getSession()
Deprecated.
Retrieve a reference to the Hibernate
Session used by this EntityManager . |
boolean |
isTransactionInProgress()
Deprecated.
Provides access to whether a transaction is currently in progress.
|
void |
markForRollbackOnly()
Deprecated.
Used to mark a transaction for rollback only (when that is the JPA spec defined behavior).
|
clear, close, contains, createEntityGraph, createEntityGraph, createNamedQuery, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, find, find, find, find, flush, getCriteriaBuilder, getDelegate, getEntityGraph, getEntityGraphs, getEntityManagerFactory, getFlushMode, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createSQLQuery, getNamedNativeQuery, getNamedQuery, getNamedSQLQuery
getFactory
SessionImplementor getSession()
HibernateEntityManager
Session
used by this EntityManager
.getSession
in interface HibernateEntityManager
void checkOpen(boolean markForRollbackIfClosed) throws IllegalStateException
markForRollbackIfClosed
, may also rollback any enlisted-in transaction. This
distinction is made across various sections of the spec. Most failed checks should rollback. Section
3.10.7 (per 2.1 spec) lists cases related to calls on related query objects that should not rollback.markForRollbackIfClosed
- If the EM is closed, should the transaction (if one) be marked for rollback?IllegalStateException
- Thrown if the EM is closedboolean isTransactionInProgress()
void markForRollbackOnly()
@Deprecated LockOptions getLockRequest(LockModeType lockModeType, Map<String,Object> properties)
buildLockOptions(LockModeType, Map)
insteadLockModeType
& properties into LockOptions
lockModeType
- is the requested lock typeproperties
- are the lock propertiesdefault LockOptions buildLockOptions(LockModeType lockModeType, Map<String,Object> properties)
LockModeType
and properties, build a Hibernate
LockOptions
lockModeType
- the requested LockModeTypeproperties
- the lock properties@Deprecated <T> Query<T> createQuery(String jpaqlString, Class<T> resultClass, Selection selection, HibernateEntityManagerImplementor.QueryOptions queryOptions)
T
- The query typejpaqlString
- The criteria query rendered as a JPA QL stringresultClass
- The result type (the type expected in the result list)selection
- The selection(s)queryOptions
- The options to use to build the query.Copyright © 2019 JBoss by Red Hat. All rights reserved.