Deprecated
(since 5.2) move these methods to SessionImplementor
javax.persistence.EntityManager implementation.
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public default LockOptions | Returns: the LockOptionsthe requested LockModeType lockModeType, Map<String, Object> the lock properties properties)Given a JPA |
| public void | checkOpen(boolean
If the EM is closed, should the transaction (if one) be marked for rollback? markForRollbackIfClosed)Used to ensure the EntityManager is open, throwing IllegalStateException if it is closed. |
| public < The query type T> Query | 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. queryOptions
Deprecated
(since 5.2) this method form is used to construct a "compiled" representation of
a JPA Criteria query.
Used during "compiling" a JPA criteria query.
|
| public LockOptions | Returns: the LockOptionsis the requested lock type lockModeType, Map<String, Object> are the lock properties properties)
Deprecated
(since 5.2) use
Convert from JPA 2 buildLockOptions(LockModeType, Map) instead
javax. & properties into org.
|
| public SessionImplementor | getSession()
Redeclares org.
Deprecated
as a consequence of
Retrieve a reference to the Hibernate SessionImplementor being deprecated.
org. used by this javax..
|
| public boolean | Returns: True if a transaction is considered currently in progress; false otherwise.Provides access to whether a transaction is currently in progress. |
| public void | markForRollbackOnly()
Used to mark a transaction for rollback only (when that is the JPA spec defined behavior). |
| buildLockOptions | back to summary |
|---|---|
| public default LockOptions buildLockOptions(LockModeType lockModeType, Map<String, Object> properties) Given a JPA
| |
| checkOpen | back to summary |
|---|---|
| public void checkOpen(boolean markForRollbackIfClosed) throws IllegalStateException Used to ensure the EntityManager is open, throwing IllegalStateException if it is closed.
Depending on the value of
| |
| createQuery | back to summary |
|---|---|
| public <T> Query 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 Used during "compiling" a JPA criteria query.
| |
| getLockRequest | back to summary |
|---|---|
| public LockOptions getLockRequest(LockModeType lockModeType, Map<String, Object> properties)
Deprecated (since 5.2) use Convert from JPA 2
| |
| getSession | back to summary |
|---|---|
| public SessionImplementor getSession() Redeclares org. Doc from org. Deprecated as a consequence of Retrieve a reference to the Hibernate
| |
| isTransactionInProgress | back to summary |
|---|---|
| public boolean isTransactionInProgress() Provides access to whether a transaction is currently in progress.
| |
| markForRollbackOnly | back to summary |
|---|---|
| public void markForRollbackOnly() Used to mark a transaction for rollback only (when that is the JPA spec defined behavior). | |
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public HibernateEntityManagerImplementor. | |
| public List | Returns: Value conversions to be applied to the JPA QL resultsGet the conversions for the individual tuples in the query results. |
| getNamedParameterExplicitTypes | back to summary |
|---|---|
| public Map Get the explicit parameter types. Generally speaking these would apply to implicit named parameters. | |
| getResultMetadataValidator | back to summary |
|---|---|
| public HibernateEntityManagerImplementor. | |
| getValueHandlers | back to summary |
|---|---|
| public List Get the conversions for the individual tuples in the query results.
| |
| validate | back to summary |
|---|---|
| public void validate(Type[] returnTypes) | |