JPA Method
in javax.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 Java Persistence query language SELECT query or a Criteria API query
Since:
JPA 2.0