org.lexevs.dao.database.key
Class COMBKeyGenerator

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

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

The Class Java5UUIDKeyGenerator.

Author:
Kevin Peterson

Constructor Summary
COMBKeyGenerator()
           
 
Method Summary
 java.util.UUID getKey(java.lang.Object record)
          Gets the key.
static java.util.UUID getSequentialUUID()
          Gets the random uuid.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COMBKeyGenerator

public COMBKeyGenerator()
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

getSequentialUUID

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

Returns:
the random uuid

main

public static void main(java.lang.String[] args)

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.