setLockMode(lockMode) - JPA Query's method
Method javax.persistence.Query
Query setLockMode(
LockModeType lockMode
)
- Parameters:
-
lockMode
- lock mode
- Returns:
- the same query instance
- Throws:
-
IllegalStateException
- if the query is found not to be a Java Persistence query language SELECT query or a Criteria API query
- Since:
- JPA 2.0