Package | Description |
---|---|
javax.persistence |
Java Persistence is the API for the management for persistence and object/relational mapping.
|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.engine.spi | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.internal.util |
Internal utility classes.
|
org.hibernate.jpa.internal.util | |
org.hibernate.jpa.spi | |
org.hibernate.procedure.internal |
Defines the internal support for implementing stored procedure calling.
|
org.hibernate.query | |
org.hibernate.query.criteria.internal.compile | |
org.hibernate.query.internal | |
org.hibernate.search.query.hibernate.impl |
Modifier and Type | Method and Description |
---|---|
LockModeType |
Query.getLockMode()
Get the current lock mode for the query.
|
LockModeType |
EntityManager.getLockMode(Object entity)
Get the current lock mode for the entity instance.
|
static LockModeType |
LockModeType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockModeType[] |
LockModeType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
EntityManager.find(Class<T> entityClass,
Object primaryKey,
LockModeType lockMode)
Find by primary key and lock.
|
<T> T |
EntityManager.find(Class<T> entityClass,
Object primaryKey,
LockModeType lockMode,
Map<String,Object> properties)
Find by primary key and lock, using the specified properties.
|
void |
EntityManager.lock(Object entity,
LockModeType lockMode)
Lock an entity instance that is contained in the persistence
context with the specified lock mode type.
|
void |
EntityManager.lock(Object entity,
LockModeType lockMode,
Map<String,Object> properties)
Lock an entity instance that is contained in the persistence
context with the specified lock mode type and with specified
properties.
|
void |
EntityManager.refresh(Object entity,
LockModeType lockMode)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any, and
lock it with respect to given lock mode type.
|
void |
EntityManager.refresh(Object entity,
LockModeType lockMode,
Map<String,Object> properties)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any, and
lock it with respect to given lock mode type and with
specified properties.
|
TypedQuery<X> |
TypedQuery.setLockMode(LockModeType lockMode)
Set the lock mode type to be used for the query execution.
|
Query |
Query.setLockMode(LockModeType lockMode)
Set the lock mode type to be used for the query execution.
|
Modifier and Type | Method and Description |
---|---|
Query<R> |
Query.setLockMode(LockModeType lockMode)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LockModeType |
SessionDelegatorBaseImpl.getLockMode(Object entity) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
SessionDelegatorBaseImpl.buildLockOptions(LockModeType lockModeType,
Map<String,Object> properties) |
<T> T |
SessionDelegatorBaseImpl.find(Class<T> entityClass,
Object primaryKey,
LockModeType lockMode) |
<T> T |
SessionDelegatorBaseImpl.find(Class<T> entityClass,
Object primaryKey,
LockModeType lockMode,
Map<String,Object> properties) |
LockOptions |
SessionDelegatorBaseImpl.getLockRequest(LockModeType lockModeType,
Map<String,Object> properties) |
void |
SessionDelegatorBaseImpl.lock(Object entity,
LockModeType lockMode) |
void |
SessionDelegatorBaseImpl.lock(Object entity,
LockModeType lockMode,
Map<String,Object> properties) |
void |
SessionDelegatorBaseImpl.refresh(Object entity,
LockModeType lockMode) |
void |
SessionDelegatorBaseImpl.refresh(Object entity,
LockModeType lockMode,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
LockModeType |
SessionImpl.getLockMode(Object entity) |
Modifier and Type | Method and Description |
---|---|
<T> T |
SessionImpl.find(Class<T> entityClass,
Object primaryKey,
LockModeType lockModeType) |
<T> T |
SessionImpl.find(Class<T> entityClass,
Object primaryKey,
LockModeType lockModeType,
Map<String,Object> properties) |
LockOptions |
SessionImpl.getLockRequest(LockModeType lockModeType,
Map<String,Object> properties) |
void |
SessionImpl.lock(Object entity,
LockModeType lockModeType) |
void |
SessionImpl.lock(Object entity,
LockModeType lockModeType,
Map<String,Object> properties) |
void |
SessionImpl.refresh(Object entity,
LockModeType lockModeType) |
void |
SessionImpl.refresh(Object entity,
LockModeType lockModeType,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
static LockModeType |
LockModeConverter.convertToLockModeType(LockMode lockMode)
Convert from the Hibernate specific LockMode to the JPA defined LockModeType.
|
Modifier and Type | Method and Description |
---|---|
static LockMode |
LockModeConverter.convertToLockMode(LockModeType lockMode)
Convert from JPA defined LockModeType to Hibernate specific LockMode.
|
Modifier and Type | Method and Description |
---|---|
static LockModeType |
LockModeTypeHelper.getLockModeType(LockMode lockMode) |
Modifier and Type | Method and Description |
---|---|
static LockMode |
LockModeTypeHelper.getLockMode(LockModeType lockModeType) |
Modifier and Type | Method and Description |
---|---|
default LockOptions |
HibernateEntityManagerImplementor.buildLockOptions(LockModeType lockModeType,
Map<String,Object> properties)
Deprecated.
Given a JPA
LockModeType and properties, build a Hibernate
LockOptions |
LockOptions |
HibernateEntityManagerImplementor.getLockRequest(LockModeType lockModeType,
Map<String,Object> properties)
Deprecated.
(since 5.2) use
HibernateEntityManagerImplementor.buildLockOptions(LockModeType, Map) instead |
Modifier and Type | Method and Description |
---|---|
LockModeType |
ProcedureCallImpl.getLockMode() |
Modifier and Type | Method and Description |
---|---|
ProcedureCallImplementor<R> |
ProcedureCallImpl.setLockMode(LockModeType lockMode) |
Modifier and Type | Method and Description |
---|---|
Query<R> |
Query.setLockMode(LockModeType lockMode) |
NativeQuery<T> |
NativeQuery.setLockMode(LockModeType lockMode) |
Modifier and Type | Method and Description |
---|---|
LockModeType |
CriteriaQueryTypeQueryAdapter.getLockMode() |
Modifier and Type | Method and Description |
---|---|
QueryImplementor<X> |
CriteriaQueryTypeQueryAdapter.setLockMode(LockModeType lockModeType) |
Modifier and Type | Method and Description |
---|---|
LockModeType |
AbstractProducedQuery.getLockMode() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractProducedQuery.applyLockModeTypeHint(LockModeType lockModeType) |
NativeQueryImplementor<T> |
NativeQueryImpl.setLockMode(LockModeType lockModeType) |
QueryImplementor |
AbstractProducedQuery.setLockMode(LockModeType lockModeType) |
Modifier and Type | Method and Description |
---|---|
LockModeType |
FullTextQueryImpl.getLockMode() |
Modifier and Type | Method and Description |
---|---|
FullTextQueryImpl |
FullTextQueryImpl.setLockMode(LockModeType lockModeType) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.