ObjectDB ObjectDB

setLockMode(lockMode) - JPA TypedQuery's method

Method
javax.persistence.TypedQuery
TypedQuery<X> 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:
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