JPA Method
in jakarta.persistence.Query

LockModeType getLockMode()


Get the current lock mode for the query. Returns null if a lock mode has not been set on the query object.
Return:
lock mode
Throws:
IllegalStateException - if the query is found not to be a Jakarta Persistence query language SELECT query or a {@link jakarta.persistence.criteria.CriteriaQuery} query
Since:
JPA 2.0