|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.util.sequence.HighLowSequence
The HighLowSequence is the persistent part of the SequenceManagerHighLowImpl.
It makes the maximum reserved key persistently available.
| Constructor Summary | |
HighLowSequence()
Default constructor for the HighLowSequence object |
|
HighLowSequence(java.lang.String tableName,
long maxKey,
int grabSize,
java.lang.Integer version)
|
|
| Method Summary | |
HighLowSequence |
getCopy()
|
int |
getGrabSize()
Gets the grabSize attribute of the HighLowSequence object |
long |
getMaxKey()
Gets the maxKey attribute of the HighLowSequence object |
java.lang.String |
getName()
Gets the name attribute of the HighLowSequence object |
long |
getNextId()
Gets the next key from this sequence |
java.lang.Integer |
getVersion()
|
void |
grabNextKeySet()
Grabs the next key set, the sequence must be saved afterwards!! |
void |
setGrabSize(int grabSize)
Sets the grab size attribute of the HighLowSequence object |
void |
setMaxKey(long maxKey)
Sets the maxKey attribute of the HighLowSequence object |
void |
setName(java.lang.String name)
Sets the name attribute of the HighLowSequence object |
void |
setVersion(java.lang.Integer version)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HighLowSequence()
public HighLowSequence(java.lang.String tableName,
long maxKey,
int grabSize,
java.lang.Integer version)
| Method Detail |
public HighLowSequence getCopy()
public java.lang.String toString()
public java.lang.Integer getVersion()
public void setVersion(java.lang.Integer version)
public void setName(java.lang.String name)
name - The new className valuepublic void setGrabSize(int grabSize)
grabSize - The new grabSize valuepublic void setMaxKey(long maxKey)
maxKey - The new maxKey valuepublic java.lang.String getName()
public int getGrabSize()
public long getNextId()
public long getMaxKey()
public void grabNextKeySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||