|
||||||||||
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,
java.lang.String fieldName,
long maxKey,
int grabSize,
java.lang.Integer version)
|
Method Summary | |
HighLowSequence |
getCopy()
|
java.lang.String |
getFieldName()
Gets the fieldName attribute of the HighLowSequence object |
int |
getGrabSize()
Gets the grabSize attribute of the HighLowSequence object |
long |
getMaxKey()
Gets the maxKey attribute of the HighLowSequence object |
long |
getNextId()
Gets the next key from this sequence |
java.lang.String |
getTableName()
Gets the className attribute of the HighLowSequence object |
java.lang.Integer |
getVersion()
|
void |
grabNextKeySet()
Grabs the next key set, the sequence must be saved afterwards!! |
void |
setFieldName(java.lang.String fieldName)
Sets the fieldName attribute of the HighLowSequence object |
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 |
setTableName(java.lang.String tableName)
Sets the className 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, java.lang.String fieldName, 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 setTableName(java.lang.String tableName)
tableName
- The new className valuepublic void setGrabSize(int grabSize)
grabSize
- The new grabSize valuepublic void setFieldName(java.lang.String fieldName)
fieldName
- The new fieldName valuepublic void setMaxKey(long maxKey)
maxKey
- The new maxKey valuepublic java.lang.String getTableName()
public int getGrabSize()
public java.lang.String getFieldName()
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 |