Package org.eclipse.persistence.config
Class PessimisticLock
- java.lang.Object
-
- org.eclipse.persistence.config.PessimisticLock
-
public class PessimisticLock extends java.lang.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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT
static java.lang.String
Lock
static java.lang.String
LockNoWait
static java.lang.String
NoLock
-
Constructor Summary
Constructors Constructor Description PessimisticLock()
-
-
-
Field Detail
-
NoLock
public static final java.lang.String NoLock
- See Also:
- Constant Field Values
-
Lock
public static final java.lang.String Lock
- See Also:
- Constant Field Values
-
LockNoWait
public static final java.lang.String LockNoWait
- See Also:
- Constant Field Values
-
DEFAULT
public static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
-
-