| java.lang.Object org.apache.ojb.broker.util.sequence.HighLowSequence
HighLowSequence | public class HighLowSequence implements Serializable(Code) | | The HighLowSequence is the persistent part of the
SequenceManagerHighLowImpl .
It makes the maximum reserved key persistently available.
version: $Id: HighLowSequence.java,v 1.11.2.2 2005/12/21 22:28:41 tomdz Exp $ |
curVal | protected long curVal(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
HighLowSequence | public HighLowSequence()(Code) | | Default constructor for the HighLowSequence object
|
HighLowSequence | public HighLowSequence(String tableName, long maxKey, int grabSize, Integer version)(Code) | | |
getGrabSize | public int getGrabSize()(Code) | | Gets the grabSize attribute of the HighLowSequence object
The grabSize value |
getMaxKey | public long getMaxKey()(Code) | | Gets the maxKey attribute of the HighLowSequence object
The maxKey value |
getName | public String getName()(Code) | | Gets the name attribute of the HighLowSequence object
The className value |
getNextId | public long getNextId()(Code) | | Gets the next key from this sequence
The next key or 0 if sequence needs to grab new keyset |
grabNextKeySet | public void grabNextKeySet()(Code) | | Grabs the next key set, the sequence must be saved afterwards!!
|
setGrabSize | public void setGrabSize(int grabSize)(Code) | | Sets the grab size attribute of the HighLowSequence object
Parameters: grabSize - The new grabSize value |
setMaxKey | public void setMaxKey(long maxKey)(Code) | | Sets the maxKey attribute of the HighLowSequence object
Parameters: maxKey - The new maxKey value |
setName | public void setName(String name)(Code) | | Sets the name attribute of the HighLowSequence object
Parameters: name - The new className value |
|
|