- java.lang.Object
-
- org.eclipse.persistence.config.PessimisticLock
-
public class PessimisticLock extends Object
PessimisticLock hint values. The class contains all the valid values for QueryHints.PESSIMISTIC_LOCK query hint.JPA Query Hint Usage:
query.setHint(QueryHints.PESSIMISTIC_LOCK, PessimisticLock.Lock);or
@QueryHint(name=QueryHints.PESSIMISTIC_LOCK, value=PessimisticLock.Lock)Hint values are case-insensitive. "" could be used instead of default value PessimisticLock.DEFAULT.
- See Also:
Note: As of JPA 2.0 there is a standard way to configure pessimistic locking.,LockModeType,(find(), refresh(), lock()),(setLockMode())
-
-
Constructor Summary
Constructors Constructor Description PessimisticLock()Deprecated, for removal: This API element is subject to removal in a future version.This constructor will be marked private and the class final.
-
-
-
Field Detail
-
NoLock
public static final String NoLock
- See Also:
- Constant Field Values
-
Lock
public static final String Lock
- See Also:
- Constant Field Values
-
LockNoWait
public static final String LockNoWait
- See Also:
- Constant Field Values
-
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PessimisticLock
@Deprecated(since="4.0.3", forRemoval=true) public PessimisticLock()
Deprecated, for removal: This API element is subject to removal in a future version.This constructor will be marked private and the class final. It is not designed for extensibility.
-
-