-
enum
Lock modes can be specified by means of passing a
LockModeType argument to one of the
invalid reference
javax.persistence.EntityManager
methods that take locks (
lock,
find, or
refresh) or to the
Query.setLockMode() or
invalid reference
TypedQuery.setLockMode()
method.
Get the current lock mode for the query.
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Set the lock mode type to be used for the query execution.