public class HighLowSequence
extends java.lang.Object
implements java.io.Serializable
SequenceManagerHighLowImpl
.
It makes the maximum reserved key persistently available.Constructor and Description |
---|
HighLowSequence()
Default constructor for the HighLowSequence object
|
HighLowSequence(java.lang.String tableName,
long maxKey,
int grabSize,
java.lang.Integer version) |
Modifier and Type | Method and Description |
---|---|
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() |
public HighLowSequence()
public HighLowSequence(java.lang.String tableName, long maxKey, int grabSize, java.lang.Integer version)
public HighLowSequence getCopy()
public java.lang.String toString()
toString
in class java.lang.Object
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()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30