<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. 
 | 
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. 
 |