|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.id.dbid.ReservedIDBlock
public class ReservedIDBlock
Used by DBIDGenerator to reserve a block of uniqueIDs used to create ID objects.
Field Summary | |
---|---|
static long |
NO_ID_AVAILABLE
Indicates that all the id's have been used up for this block |
Constructor Summary | |
---|---|
ReservedIDBlock()
Construct a new instance with the first ID and last ID in the block. |
Method Summary | |
---|---|
long |
getNextID()
Return the next ID in the block. |
void |
setBlockValues(long first,
long max)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long NO_ID_AVAILABLE
Constructor Detail |
---|
public ReservedIDBlock()
first
- Defines the first id in this block.last
- Defines the last id in the block.
java.lang.IllegalArgumentException
- if first > lastMethod Detail |
---|
public void setBlockValues(long first, long max)
public long getNextID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |