org.qi4j.api.entity
Interface IdentityGenerator

All Known Subinterfaces:
GaeIdGeneratorService, UuidIdentityGeneratorService
All Known Implementing Classes:
GaeIdGeneratorService.Mixin, UuidIdentityGeneratorMixin

public interface IdentityGenerator

Generator for identities of EntityComposite's.


Method Summary
 String generate(Class<? extends Identity> compositeType)
          Generate a new id for the given Composite type
 

Method Detail

generate

String generate(Class<? extends Identity> compositeType)
Generate a new id for the given Composite type

Parameters:
compositeType - the type of composite
Returns:
a new identity