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 PlatformIdGenerator
public boolean isDbSequence()
isDbSequence
in interface PlatformIdGenerator
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
public Object nextId(Transaction t)
If a Transaction has been passed in use the Connection from it.
nextId
in interface PlatformIdGenerator
Copyright © 2019. All rights reserved.