接口 HibernateEntityManagerImplementor
-
- 所有超级接口:
javax.persistence.EntityManager,HibernateEntityManager,HibernateEntityManager,HibernateEntityManagerFactoryAware,QueryProducer
- 所有已知子接口:
EventSource,SessionImplementor
@Deprecated public interface HibernateEntityManagerImplementor extends HibernateEntityManager, HibernateEntityManagerFactoryAware
已过时。(since 5.2) move these methods to SessionImplementorAdditional internal contracts for the HibernateEntityManagerimplementation.- 作者:
- Emmanuel Bernard, Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceHibernateEntityManagerImplementor.QueryOptions已过时。
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 default LockOptionsbuildLockOptions(javax.persistence.LockModeType lockModeType, Map<String,Object> properties)已过时。Given a JPALockModeTypeand properties, build a HibernateLockOptionsvoidcheckOpen(boolean markForRollbackIfClosed)已过时。Used to ensure the EntityManager is open, throwing IllegalStateException if it is closed.<T> Query<T>createQuery(String jpaqlString, Class<T> resultClass, javax.persistence.criteria.Selection selection, HibernateEntityManagerImplementor.QueryOptions queryOptions)已过时。(since 5.2) this method form is used to construct a "compiled" representation of a JPA Criteria query.LockOptionsgetLockRequest(javax.persistence.LockModeType lockModeType, Map<String,Object> properties)已过时。(since 5.2) usebuildLockOptions(LockModeType, Map)insteadSessionImplementorgetSession()已过时。Retrieve a reference to the HibernateSessionused by thisEntityManager.booleanisTransactionInProgress()已过时。Provides access to whether a transaction is currently in progress.voidmarkForRollbackOnly()已过时。Used to mark a transaction for rollback only (when that is the JPA spec defined behavior).-
从接口继承的方法 javax.persistence.EntityManager
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
-
从接口继承的方法 org.hibernate.jpa.spi.HibernateEntityManagerFactoryAware
getFactory
-
从接口继承的方法 org.hibernate.query.QueryProducer
createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, getNamedNativeQuery, getNamedQuery, getNamedSQLQuery
-
-
-
-
方法详细资料
-
getSession
SessionImplementor getSession()
已过时。从接口复制的说明:HibernateEntityManagerRetrieve a reference to the HibernateSessionused by thisEntityManager.- 指定者:
getSession在接口中HibernateEntityManager- 返回:
- The session
-
checkOpen
void checkOpen(boolean markForRollbackIfClosed) throws IllegalStateException已过时。Used to ensure the EntityManager is open, throwing IllegalStateException if it is closed. Depending on the value ofmarkForRollbackIfClosed, 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 closed
-
isTransactionInProgress
boolean isTransactionInProgress()
已过时。Provides access to whether a transaction is currently in progress.- 返回:
- True if a transaction is considered currently in progress; false otherwise.
-
markForRollbackOnly
void markForRollbackOnly()
已过时。Used to mark a transaction for rollback only (when that is the JPA spec defined behavior).
-
getLockRequest
@Deprecated LockOptions getLockRequest(javax.persistence.LockModeType lockModeType, Map<String,Object> properties)
已过时。(since 5.2) usebuildLockOptions(LockModeType, Map)insteadConvert from JPA 2LockModeType& properties intoLockOptions- 参数:
lockModeType- is the requested lock typeproperties- are the lock properties- 返回:
- the LockOptions
-
buildLockOptions
default LockOptions buildLockOptions(javax.persistence.LockModeType lockModeType, Map<String,Object> properties)
已过时。Given a JPALockModeTypeand properties, build a HibernateLockOptions- 参数:
lockModeType- the requested LockModeTypeproperties- the lock properties- 返回:
- the LockOptions
-
createQuery
@Deprecated <T> Query<T> createQuery(String jpaqlString, Class<T> resultClass, javax.persistence.criteria.Selection selection, HibernateEntityManagerImplementor.QueryOptions queryOptions)
已过时。(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.0Used during "compiling" a JPA criteria query.- 类型参数:
T- The query type- 参数:
jpaqlString- 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.- 返回:
- The typed query
-
-