|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.descriptors.PessimisticLockingPolicy
public class PessimisticLockingPolicy
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 Summary | |
---|---|
PessimisticLockingPolicy()
|
Method Summary | |
---|---|
Object |
clone()
INTERNAL: Clone the policy |
short |
getLockingMode()
PUBLIC: Return locking mode. |
void |
setLockingMode(short mode)
PUBLIC: Set locking mode. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PessimisticLockingPolicy()
Method Detail |
---|
public short getLockingMode()
public void setLockingMode(short mode)
short
- mode must be value of ObjectLevelReadQuery.LOCK or ObjectLevelReadQuery.LOCK_NOWAITpublic Object clone()
clone
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |