public abstract class HiLoGenerator extends IDGenerator.OrderedSupport
IDGenerator.Ordered, IDGenerator.OrderedSupport| Constructor and Description |
|---|
HiLoGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getID()
Generates and returns a new ID.
|
abstract int |
getMaxLo()
Returns the maximum Lo ID (expect the Hi ID be incremented afterwards)
|
protected abstract int |
getNextHiId()
Returns the next Hi ID
|
protected int |
getNextLoId()
Returns then next Lo ID
|
void |
reset()
Resets the generator
|
protected abstract void |
resetHiId()
Resets the Hi ID
|
getIncrementpublic HiLoGenerator()
public String getID() throws IOException
IDGeneratorIOExceptionprotected abstract int getNextHiId() throws IOException
IOExceptionprotected abstract void resetHiId()
protected int getNextLoId()
public void reset()
reset in interface IDGenerator.Orderedreset in class IDGenerator.OrderedSupportpublic abstract int getMaxLo()
Copyright © 2001-2014 University Health Network. All Rights Reserved.