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() |
protected abstract int |
getNextHiId() |
protected int |
getNextLoId() |
void |
reset() |
protected abstract void |
resetHiId() |
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-2013 University Health Network. All Rights Reserved.