Class UUIDGenerator

  extended by
      extended by
          extended by
All Implemented Interfaces:

public class UUIDGenerator
extends AbstractUIDGenerator

Value generator for a UUID utilising the JDK UUID class (128-bit, 36 character). Results in Strings of length 36 characters, like "2cdb8cee-9134-453f-9d7a-14c0ae8184c6".

Field Summary
Fields inherited from class
allocationSize, block, initialValue, LOCALISER, name, properties, repositoryExists
Constructor Summary
UUIDGenerator(java.lang.String name, java.util.Properties props)
Method Summary
protected  java.lang.String getIdentifier()
          Create an identifier with the form "2cdb8cee-9134-453f-9d7a-14c0ae8184c6".
Methods inherited from class
getStorageClass, reserveBlock
Methods inherited from class
allocate, createRepository, current, currentValue, getName, next, nextValue, obtainGenerationBlock, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public UUIDGenerator(java.lang.String name,
                     java.util.Properties props)

name - Symbolic name for this generator
props - Properties controlling its behaviour
Method Detail


protected java.lang.String getIdentifier()
Create an identifier with the form "2cdb8cee-9134-453f-9d7a-14c0ae8184c6".

Specified by:
getIdentifier in class AbstractUIDGenerator
The identifier

Copyright © 2011. All Rights Reserved.