public class UUIDGenerator extends java.lang.Object implements IdGenerator
| Constructor and Description |
|---|
UUIDGenerator()
Instantiates a new UUID generator.
|
UUIDGenerator(cn.featherfly.common.lang.UUIDGenerator.Type type)
Instantiates a new UUID generator.
|
| Modifier and Type | Method and Description |
|---|---|
<E> java.io.Serializable |
generate(E entity,
PropertyMapping<?> idPropertyMapping)
Generate.
|
boolean |
isDatabaseGeneration()
Checks if is database generation.
|
boolean |
isOrdered()
Checks if is ordered.
|
public UUIDGenerator()
public UUIDGenerator(cn.featherfly.common.lang.UUIDGenerator.Type type)
type - the typepublic <E> java.io.Serializable generate(E entity,
PropertyMapping<?> idPropertyMapping)
generate in interface IdGeneratorE - the element typeentity - the entityidPropertyMapping - the id property mappingpublic boolean isOrdered()
isOrdered in interface IdGeneratorpublic boolean isDatabaseGeneration()
isDatabaseGeneration in interface IdGenerator