org.lexevs.dao.database.key
Class NanoTimeLongKeyGenerator

java.lang.Object
  extended by org.lexevs.dao.database.key.NanoTimeLongKeyGenerator
All Implemented Interfaces:
KeyProvider<java.lang.Object,java.lang.Long>

public class NanoTimeLongKeyGenerator
extends java.lang.Object
implements KeyProvider<java.lang.Object,java.lang.Long>

The Class NanoTimeLongKeyGenerator.

Author:
Kevin Peterson

Constructor Summary
NanoTimeLongKeyGenerator()
           
 
Method Summary
 java.lang.Long getKey(java.lang.Object record)
          Gets the key.
static long getNanoTimeLongKey()
           
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

NanoTimeLongKeyGenerator

public NanoTimeLongKeyGenerator()
Method Detail

getKey

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

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

getNanoTimeLongKey

public static long getNanoTimeLongKey()

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.