java.lang.Object
io.ebean.config.dbplatform.SequenceIdGenerator
io.ebean.config.dbplatform.SequenceStepIdGenerator
- All Implemented Interfaces:
PlatformIdGenerator
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
ModifierConstructorDescriptionprotected
SequenceStepIdGenerator
(BackgroundExecutor be, DataSource ds, String seqName, int stepSize) Construct with stepSize (typically 50). -
Method Summary
Methods inherited from class io.ebean.config.dbplatform.SequenceIdGenerator
getMoreIds, getName, getSql, isDbSequence, loadInBackground, nextId, preAllocateIds
-
Constructor Details
-
SequenceStepIdGenerator
protected SequenceStepIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int stepSize) Construct with stepSize (typically 50).
-
-
Method Details
-
readIds
Add the next set of Ids as the next value plus all the following numbers up to the step size.- Specified by:
readIds
in classSequenceIdGenerator
- Throws:
SQLException
-