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 IdGenerator
public String getName()
getName
in interface IdGenerator
public boolean isDbSequence()
isDbSequence
in interface IdGenerator
public void preAllocateIds(int allocateSize)
preAllocateIds
in interface IdGenerator
Copyright © 2015. All Rights Reserved.