|
||||||||||
| 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
public class HighLowSequence
The HighLowSequence is the persistent part of the SequenceManagerHighLowImpl.
It makes the maximum reserved key persistently available.
| Field Summary | |
|---|---|
protected long |
curVal
|
| Constructor Summary | |
|---|---|
HighLowSequence()
Default constructor for the HighLowSequence object |
|
HighLowSequence(String tableName,
long maxKey,
int grabSize,
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 |
String |
getName()
Gets the name attribute of the HighLowSequence object |
long |
getNextId()
Gets the next key from this sequence |
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(String name)
Sets the name attribute of the HighLowSequence object |
void |
setVersion(Integer version)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long curVal
| Constructor Detail |
|---|
public HighLowSequence()
public HighLowSequence(String tableName,
long maxKey,
int grabSize,
Integer version)
| Method Detail |
|---|
public HighLowSequence getCopy()
public String toString()
toString in class Objectpublic Integer getVersion()
public void setVersion(Integer version)
public void setName(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 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 | |||||||||