org.qi4j.spi.uuid
Class UuidIdentityGeneratorMixin
java.lang.Object
org.qi4j.spi.uuid.UuidIdentityGeneratorMixin
- All Implemented Interfaces:
- IdentityGenerator
public class UuidIdentityGeneratorMixin
- extends Object
- implements IdentityGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uuid
protected String uuid
UuidIdentityGeneratorMixin
public UuidIdentityGeneratorMixin()
generate
public String generate(Class<? extends Identity> compositeType)
- Description copied from interface:
IdentityGenerator
- Generate a new id for the given Composite type
- Specified by:
generate
in interface IdentityGenerator
- Parameters:
compositeType
- the type of composite
- Returns:
- a new identity