|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormField Summary | |
---|---|
protected short |
lockingMode
|
Constructor Summary | |
---|---|
PessimisticLockingPolicy()
|
Method Summary | |
---|---|
java.lang.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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected short lockingMode
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 java.lang.Object clone()
clone
in class java.lang.Object
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |