public class PessimisticLock
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
static java.lang.String |
Lock |
static java.lang.String |
LockNoWait |
static java.lang.String |
NoLock |
Constructor and Description |
---|
PessimisticLock() |
public static final java.lang.String NoLock
public static final java.lang.String Lock
public static final java.lang.String LockNoWait
public static final java.lang.String DEFAULT