Jakarta Persistence (JPA) Method

LockModeType getLockMode()


Get the current lock mode for the query. Returns null if a lock mode has not been set on the query object.
Returns:
lock mode.
Throws:
IllegalStateException - if the query is found not to be a Jakarta Persistence query language SELECT query or a CriteriaQuery<T> query.
Since:
Jakarta Persistence (JPA) 2.0