|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.descriptors.VersionLockingPolicy oracle.toplink.descriptors.TimestampLockingPolicy
public class TimestampLockingPolicy
Purpose: Used to allow a single version timestamp to be used for optimistic locking.
Field Summary | |
---|---|
static int |
LOCAL_TIME
|
static int |
SERVER_TIME
|
Fields inherited from class oracle.toplink.descriptors.VersionLockingPolicy |
---|
IN_CACHE, IN_OBJECT |
Constructor Summary | |
---|---|
TimestampLockingPolicy()
Create a new TimestampLockingPolicy. |
|
TimestampLockingPolicy(java.lang.String fieldName)
Create a new TimestampLockingPolicy. |
Method Summary | |
---|---|
void |
setUsesServerTime(boolean usesServerTime)
Set if policy uses server time. |
void |
useLocalTime()
set this policy to get the time from the local machine. |
void |
useServerTime()
set this policy to get the time from the server. |
boolean |
usesLocalTime()
Return true if policy uses local time. |
boolean |
usesServerTime()
Return true if policy uses server time. |
Methods inherited from class oracle.toplink.descriptors.VersionLockingPolicy |
---|
getWriteLockFieldName, isCascaded, isStoredInCache, isStoredInObject, setIsCascaded, setIsStoredInCache, setWriteLockField, setWriteLockFieldName, storeInCache, storeInObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SERVER_TIME
public static final int LOCAL_TIME
Constructor Detail |
---|
public TimestampLockingPolicy()
public TimestampLockingPolicy(java.lang.String fieldName)
fieldName
- the field where the write lock value will be stored.Method Detail |
---|
public void setUsesServerTime(boolean usesServerTime)
public void useLocalTime()
public void useServerTime()
public boolean usesLocalTime()
public boolean usesServerTime()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |