Enum Class PessimisticLockScope

java.lang.Object
java.lang.Enum<PessimisticLockScope>
jakarta.persistence.PessimisticLockScope
All Implemented Interfaces:
FindOption, LockOption, RefreshOption, Serializable, Comparable<PessimisticLockScope>, Constable

public enum PessimisticLockScope extends Enum<PessimisticLockScope> implements FindOption, RefreshOption, LockOption
Defines the values of the jakarta.persistence.lock.scope property for pessimistic locking. This property may be passed as an argument to the methods of the EntityManager, Query, and TypedQuery interfaces that allow lock modes to be specified or used with the NamedQuery annotation.
Since:
2.0