java.lang.Object
org.eclipse.persistence.config.PessimisticLock
PessimisticLock hint values.
Hint values are case-insensitive.
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)
"" could be used instead of default value
DEFAULT.
Note: As of JPA 2.0 there is a standard way to configure pessimistic locking.
- See Also:
-
Field Summary
Fields -
Method Summary
-
Field Details
-
NoLock
- See Also:
-
Lock
- See Also:
-
LockNoWait
- See Also:
-
DEFAULT
- See Also:
-