org.lexevs.dao.database.key
Class Java5UUIDKeyGenerator

java.lang.Object
  extended by org.lexevs.dao.database.key.Java5UUIDKeyGenerator
All Implemented Interfaces:
KeyProvider<java.lang.Object,java.util.UUID>

public class Java5UUIDKeyGenerator
extends java.lang.Object
implements KeyProvider<java.lang.Object,java.util.UUID>

The Class Java5UUIDKeyGenerator.

Author:
Kevin Peterson

Constructor Summary
Java5UUIDKeyGenerator()
           
 
Method Summary
 java.util.UUID getKey(java.lang.Object record)
          Gets the key.
static java.util.UUID getRandomUUID()
          Gets the random uuid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java5UUIDKeyGenerator

public Java5UUIDKeyGenerator()
Method Detail

getKey

public java.util.UUID getKey(java.lang.Object record)
Description copied from interface: KeyProvider
Gets the key.

Specified by:
getKey in interface KeyProvider<java.lang.Object,java.util.UUID>
Parameters:
record - the record
Returns:
the key

getRandomUUID

public static java.util.UUID getRandomUUID()
Gets the random uuid.

Returns:
the random uuid

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.