Jakarta Persistence (JPA) Method
Query setLockMode(
LockModeType lockMode
)
Set the lock mode type to be used for the query execution.
- Parameters:
lockMode- lock mode
- Returns:
- the same query instance.
- Throws:
- if the query is found not to be a Jakarta Persistence query language SELECT query or aIllegalStateExceptionCriteriaQuery<T>query.
- Since:
- Jakarta Persistence (JPA) 2.0