public class UuidIdGenerator extends Object implements IdGenerator
AUTO_UUID| Constructor and Description |
|---|
UuidIdGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns "uuid".
|
boolean |
isDbSequence()
Returns false.
|
Object |
nextId(Transaction t)
Return UUID from UUID.randomUUID();
|
void |
preAllocateIds(int allocateSize)
Ignored for UUID as not required as a performance optimisation.
|
public Object nextId(Transaction t)
nextId in interface IdGeneratorpublic String getName()
getName in interface IdGeneratorpublic boolean isDbSequence()
isDbSequence in interface IdGeneratorpublic void preAllocateIds(int allocateSize)
preAllocateIds in interface IdGeneratorCopyright © 2014. All Rights Reserved.