public abstract class SequenceBatchIdGenerator extends SequenceIdGenerator
AUTO_UUID
Constructor and Description |
---|
SequenceBatchIdGenerator(BackgroundExecutor be,
DataSource ds,
String seqName,
int batchSize)
Construct where batchSize is the sequence step size.
|
Modifier and Type | Method and Description |
---|---|
void |
preAllocateIds(int requestSize)
If allocateSize is large load some sequences in a background thread.
|
getName, getSql, isDbSequence, nextId
public SequenceBatchIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
public void preAllocateIds(int requestSize)
For example, when inserting a bean with a cascade on a OneToMany with many beans Ebean can call this to ensure .
preAllocateIds
in interface PlatformIdGenerator
preAllocateIds
in class SequenceIdGenerator
Copyright © 2019. All rights reserved.