|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.broker.util.sequence.HighLowSequence
The HighLowSequence is the persistent part of the HighLowSequenceGenerator. It makes the maximum reserved key persistently availabe.
Constructor Summary | |
HighLowSequence()
Default constructor for the HighLowSequence object |
|
HighLowSequence(java.lang.String className,
java.lang.String fieldName,
int maxKey,
int grabSize)
Constructor for the HighLowSequence object |
Method Summary | |
java.lang.String |
getClassName()
Gets the className attribute of the HighLowSequence object |
java.lang.String |
getFieldName()
Gets the fieldName attribute of the HighLowSequence object |
int |
getGrabSize()
Gets the grabSize attribute of the HighLowSequence object |
int |
getMaxKey()
Gets the maxKey attribute of the HighLowSequence object |
int |
getNextId()
Gets the next key from this sequence |
void |
grabNextKeySet()
Grabs the next key set, the sequence must be saved afterwards!! |
void |
setClassName(java.lang.String className)
Sets the className attribute of the HighLowSequence object |
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(int maxKey)
Sets the maxKey attribute of the HighLowSequence object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HighLowSequence()
public HighLowSequence(java.lang.String className, java.lang.String fieldName, int maxKey, int grabSize)
className
- The classname of this sequencefieldName
- The fieldname of this sequencemaxKey
- The maximum key currently in usegrabSize
- The grab size, i.e. the number of keys to reserveMethod Detail |
public void setClassName(java.lang.String className)
className
- 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(int maxKey)
maxKey
- The new maxKey valuepublic java.lang.String getClassName()
public int getGrabSize()
public java.lang.String getFieldName()
public int getNextId()
public int getMaxKey()
public void grabNextKeySet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |