org.qi4j.spi.uuid
Class UuidIdentityGeneratorMixin

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

public class UuidIdentityGeneratorMixin
extends java.lang.Object
implements IdentityGenerator

UUID based Identity generator mixin.


Field Summary
protected  java.lang.String uuid
           
 
Constructor Summary
UuidIdentityGeneratorMixin()
           
 
Method Summary
 java.lang.String generate(java.lang.Class<?> 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 java.lang.String uuid
Constructor Detail

UuidIdentityGeneratorMixin

public UuidIdentityGeneratorMixin()
Method Detail

generate

public java.lang.String generate(java.lang.Class<?> 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