public class HiLoIdGenerator extends AbstractHiLoIdGenerator
DEFAULT_ID_TABLE_NAME, DEFAULT_NEXT_ID_COL_NAME
Constructor and Description |
---|
HiLoIdGenerator() |
Modifier and Type | Method and Description |
---|---|
protected Long |
getBaseId()
Returns the current base id, to which the lo value is added.
|
protected Long |
getHiStepSize()
Returns the step size, by which the hi value (as stored in the database) is incremented when a new
block has to be started.
|
protected Long |
getInitialHiValue()
Returns the very first hi value the generator writes into the database (if none was written before).
|
fetchNextId, generateNext, getBlockSize, getDataSource, getHiValue, getIdTableName, getNextIdColumnName, initialize, runInSerializableTransaction, setBlockSize, setDataSource, setIdTableName, setNextIdColumnName
protected Long getInitialHiValue()
AbstractHiLoIdGenerator
getInitialHiValue
in class AbstractHiLoIdGenerator
protected Long getHiStepSize()
AbstractHiLoIdGenerator
getHiStepSize
in class AbstractHiLoIdGenerator
protected Long getBaseId()
AbstractHiLoIdGenerator
getBaseId
in class AbstractHiLoIdGenerator
Copyright © 2017 Clazzes.org. All rights reserved.