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 long |
getMaxLo()
Returns the maximum Lo ID (expect the Hi ID be incremented afterwards)
|
protected abstract long |
getNextHiId()
Returns the next Hi ID
|
protected long |
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 long getNextHiId() throws IOException
IOExceptionprotected abstract void resetHiId()
protected long getNextLoId()
public void reset()
reset in interface IDGenerator.Orderedreset in class IDGenerator.OrderedSupportpublic abstract long getMaxLo()
Copyright © 2001–2017 University Health Network. All rights reserved.