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:
- if the query is found not to be a Jakarta Persistence query language SELECT query or aIllegalStateExceptionCriteriaQuery<T>query.
- Since:
- Jakarta Persistence (JPA) 2.0