|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.config.PessimisticLock
public class PessimisticLock
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.
Note: As of JPA 2.0 there is a standard way to configure pessimistic locking., LockModeType, (find(), refresh(), lock()), (setLockMode())| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT |
static java.lang.String |
Lock |
static java.lang.String |
LockNoWait |
static java.lang.String |
NoLock |
| Constructor Summary | |
|---|---|
PessimisticLock() |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public PessimisticLock()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||