public class DelegatingHiLoGenerator extends HiLoGenerator
Example:
Hi IDs: 0, 100, 200, 300 (increment = 100) Lo IDs: 1,2,3,...,100,1,2,3,.... Resulting ID (Hi + Lo): 1,2,3,99,100,101,102,...
FileBasedHiLoGenerator
IDGenerator.Ordered, IDGenerator.OrderedSupport
Constructor and Description |
---|
DelegatingHiLoGenerator() |
DelegatingHiLoGenerator(IDGenerator.Ordered delegate) |
Modifier and Type | Method and Description |
---|---|
long |
getMaxLo()
THe maximum "lo" ID is the increment of the hi ID.
|
protected long |
getNextHiId()
Returns the next Hi ID
|
protected void |
resetHiId()
Resets the Hi ID
|
void |
setDelegate(IDGenerator.Ordered delegate) |
getID, getNextLoId, reset
getIncrement
public DelegatingHiLoGenerator()
public DelegatingHiLoGenerator(IDGenerator.Ordered delegate)
protected long getNextHiId() throws IOException
HiLoGenerator
getNextHiId
in class HiLoGenerator
IOException
public void setDelegate(IDGenerator.Ordered delegate)
protected void resetHiId()
HiLoGenerator
resetHiId
in class HiLoGenerator
public long getMaxLo()
getMaxLo
in class HiLoGenerator
Copyright © 2001–2017 University Health Network. All rights reserved.