| Package | Description |
|---|---|
| javax.persistence |
| Modifier and Type | Method and Description |
|---|---|
LockModeType |
Query.getLockMode()
Gets the lock type.
|
LockModeType |
EntityManager.getLockMode(java.lang.Object entity)
Returns the lock mode for the entity
|
static LockModeType |
LockModeType.valueOf(java.lang.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(java.lang.Class<T> entityCLass,
java.lang.Object primaryKey,
LockModeType lockMode)
Find based on the primary key.
|
<T> T |
EntityManager.find(java.lang.Class<T> entityCLass,
java.lang.Object primaryKey,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties)
Find based on the primary key.
|
void |
EntityManager.lock(java.lang.Object entity,
LockModeType lockMode)
Sets the lock mode for an entity.
|
void |
EntityManager.lock(java.lang.Object entity,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the lock mode for an entity.
|
void |
EntityManager.refresh(java.lang.Object entity,
LockModeType lockMode)
Update the state of the instance from the database.
|
void |
EntityManager.refresh(java.lang.Object entity,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties)
Update the state of the instance from the database.
|
TypedQuery<X> |
TypedQuery.setLockMode(LockModeType lockMode) |
Query |
Query.setLockMode(LockModeType lockMode)
Sets the lock type.
|