Description: This policy is used to configure bean level pessimistic locking feature. It is set on the CMPPolicy instance of the ClassDescriptor Note that bean is not pessimistic locked in the following scenarios:
Responsibilities:
org.eclipse.persistence.descriptors.CMPPolicy
| Modifier and Type | Field and Description |
|---|---|
| protected short |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public short | Returns: short locking mode value of ObjectLevelReadQuery.LOCK or ObjectLevelReadQuery.LOCK_NOWAITPUBLIC: Return locking mode. |
| public void | setLockingMode(short
must be value of ObjectLevelReadQuery.LOCK or ObjectLevelReadQuery.LOCK_NOWAIT mode)PUBLIC: Set locking mode. |
| lockingMode | back to summary |
|---|---|
| protected short lockingMode | |
| PessimisticLockingPolicy | back to summary |
|---|---|
| public PessimisticLockingPolicy() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. INTERNAL: Clone the policy
| |
| getLockingMode | back to summary |
|---|---|
| public short getLockingMode() PUBLIC: Return locking mode. Default locking mode is ObjectLevelReadQuery.LOCK.
| |
| setLockingMode | back to summary |
|---|---|
| public void setLockingMode(short mode) PUBLIC: Set locking mode. If the mode is not a valid value, the locking mode is unchanged.
| |