org.qi4j.spi.uuid
Class UuidIdentityGeneratorMixin

java.lang.Object
  extended by org.qi4j.spi.uuid.UuidIdentityGeneratorMixin
All Implemented Interfaces:
IdentityGenerator

public class UuidIdentityGeneratorMixin
extends Object
implements IdentityGenerator


Field Summary
protected  String uuid
           
 
Constructor Summary
UuidIdentityGeneratorMixin()
           
 
Method Summary
 String generate(Class<? extends Identity> compositeType)
          Generate a new id for the given Composite type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uuid

protected String uuid
Constructor Detail

UuidIdentityGeneratorMixin

public UuidIdentityGeneratorMixin()
Method Detail

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