- java.lang.Object
-
- io.ebean.config.dbplatform.SequenceIdGenerator
-
- io.ebean.config.dbplatform.SequenceStepIdGenerator
-
- All Implemented Interfaces:
PlatformIdGenerator
public abstract class SequenceStepIdGenerator extends SequenceIdGenerator
Database sequence based IdGenerator using Sequence Step (e.g. step 50).
-
-
Field Summary
-
Fields inherited from class io.ebean.config.dbplatform.SequenceIdGenerator
allocationSize, backgroundExecutor, currentlyBackgroundLoading, dataSource, idList, log, seqName
-
Fields inherited from interface io.ebean.config.dbplatform.PlatformIdGenerator
AUTO_UUID
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSequenceStepIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int stepSize)Construct with stepSize (typically 50).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Long>readIds(ResultSet resultSet, int ignoreRequestSize)Add the next set of Ids as the next value plus all the following numbers up to the step size.-
Methods inherited from class io.ebean.config.dbplatform.SequenceIdGenerator
getMoreIds, getName, getSql, isDbSequence, loadInBackground, nextId, preAllocateIds
-
-
-
-
Constructor Detail
-
SequenceStepIdGenerator
protected SequenceStepIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int stepSize)
Construct with stepSize (typically 50).
-
-
Method Detail
-
readIds
protected List<Long> readIds(ResultSet resultSet, int ignoreRequestSize) throws SQLException
Add the next set of Ids as the next value plus all the following numbers up to the step size.- Specified by:
readIdsin classSequenceIdGenerator- Throws:
SQLException
-
-