|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.poid.AUID.State
This class represents the current state of the AUID generator.
Constructor Summary | |
protected |
AUID.State()
|
Method Summary | |
long |
getAdjustTime()
Returns the time adjustment to be added to the last time stamp to create the next AUID. |
int |
getClockSequence()
Returns the current clock sequence. |
boolean |
getIncludeSecurityAttributes()
Returns wether security attribute have to be included. |
long |
getLastTime()
Returns the last time stamp used to create an AUID. |
long |
getNode()
Returns the node value. |
java.util.Random |
getRandom()
Returns the random generator used for initialization of fields. |
int |
getVariant()
Returns the variant to use when constructing new AUIDs. |
int |
getVersion()
Returns the version to use when constructing new AUIDs. |
long |
incrementAdjustTime()
Returns the time adjustment to be added to the last time stamp to create the next AUID and increments it. |
void |
setAdjustTime(long adjustTime)
Sets the time adjustment to be added to the last time stamp to create the next AUID. |
void |
setClockSequence(int clockSequence)
Sets the current clock sequence. |
void |
setIncludeSecurityAttributes(boolean includeSecurityAttributes)
Sets if security attributes have to be included in time low field. |
void |
setLastTime(long lastTime)
Sets the last time stamp used to create an AUID. |
void |
setNode(long node)
Set the node value. |
void |
setRandom(java.util.Random random)
Sets the random generator used for initialization of fields. |
void |
setVariant(int variant)
Sets the variant to use when constructing new AUIDs. |
void |
setVersion(int version)
Sets the version to use when constructing new AUIDs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AUID.State()
Method Detail |
public void setLastTime(long lastTime)
lastTime
- the last time stamp used to create an AUID.public long getLastTime()
public void setAdjustTime(long adjustTime)
adjustTime
- The time adjustment to be added to the last time stamp to
create the next AUID.public long getAdjustTime()
public long incrementAdjustTime()
public void setClockSequence(int clockSequence)
clockSequence
- the current clock sequence.public int getClockSequence()
public void setNode(long node)
node
- the node value.public long getNode()
public void setVersion(int version)
version
- the version to use when constructing new AUIDs.public int getVersion()
public void setVariant(int variant)
variant
- the variant to use when constructing new AUIDs.public int getVariant()
public void setRandom(java.util.Random random)
random
- the random generator to use for initialization of fields.public java.util.Random getRandom()
public void setIncludeSecurityAttributes(boolean includeSecurityAttributes)
includeSecurityAttributes
- if true
security attributes will included.public boolean getIncludeSecurityAttributes()
true
if security attributes have to be
included.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |