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
|
getIncrement
public HiLoGenerator()
public String getID() throws IOException
IDGenerator
IOException
protected abstract long getNextHiId() throws IOException
IOException
protected abstract void resetHiId()
protected long getNextLoId()
public void reset()
reset
in interface IDGenerator.Ordered
reset
in class IDGenerator.OrderedSupport
public abstract long getMaxLo()
Copyright © 2001–2017 University Health Network. All rights reserved.