<T> T |
EntityManager.find(java.lang.Class<T> entityClass,
java.lang.Object primaryKey,
LockModeType lockMode) |
Find by primary key and obtain the given lock type for the
resulting entity.
|
<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 by primary key and lock the entity, using the specified
properties.
|
void |
EntityManager.lock(java.lang.Object entity,
LockModeType lockMode) |
Lock an entity instance belonging to the persistence context,
obtaining the specified lock mode.
|
void |
EntityManager.lock(java.lang.Object entity,
LockModeType lockMode,
LockOption... options) |
Lock an entity instance belonging to the persistence context,
obtaining the specified lock mode,
using the specified options.
|
void |
EntityManager.lock(java.lang.Object entity,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties) |
Lock an entity instance belonging to the persistence context,
obtaining the specified lock mode,
using the specified properties.
|
void |
EntityManager.refresh(java.lang.Object entity,
LockModeType lockMode) |
Refresh the state of the given managed entity instance from
the database, overwriting unflushed changes made to the entity,
if any, and obtain the given lock mode.
|
void |
EntityManager.refresh(java.lang.Object entity,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties) |
Refresh the state of the given managed entity instance from
the database, overwriting unflushed changes made to the entity,
if any, and obtain the given lock mode,
using the specified properties.
|
Query |
Query.setLockMode(LockModeType lockMode) |
Set the lock mode type to be used for the query execution.
|
TypedQuery<X> |
TypedQuery.setLockMode(LockModeType lockMode) |
Set the lock mode type to be used for the query execution.
|