public abstract class SequenceIdGenerator extends Object implements PlatformIdGenerator
AUTO_UUID| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the sequence name.
|
abstract String |
getSql(int batchSize) |
boolean |
isDbSequence()
Returns true.
|
Object |
nextId(Transaction t)
Return the next Id.
|
void |
preAllocateIds(int requestSize)
If allocateSize is large load some sequences in a background thread.
|
public String getName()
getName in interface PlatformIdGeneratorpublic boolean isDbSequence()
isDbSequence in interface PlatformIdGeneratorpublic 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 PlatformIdGeneratorpublic Object nextId(Transaction t)
If a Transaction has been passed in use the Connection from it.
nextId in interface PlatformIdGeneratorCopyright © 2019. All rights reserved.