public class PessimisticLockingPolicy extends Object implements Cloneable, Serializable
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:
CMPPolicy
,
Serialized FormConstructor and Description |
---|
PessimisticLockingPolicy() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
INTERNAL:
Clone the policy
|
short |
getLockingMode()
PUBLIC:
Return locking mode.
|
void |
setLockingMode(short mode)
PUBLIC:
Set locking mode.
|
public short getLockingMode()
public void setLockingMode(short mode)
short
- mode must be value of ObjectLevelReadQuery.LOCK or ObjectLevelReadQuery.LOCK_NOWAITEclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference