org.apache.openjpa.lib.util
Class TimestampHelper

java.lang.Object
  extended by org.apache.openjpa.lib.util.TimestampHelper

public class TimestampHelper
extends Object

Helper base class attempts to return java.sql.Timestamp object with nanosecond precision.

Author:
Albert Lee

Field Summary
protected static long MicroMuliplier
           
protected static long MilliMuliplier
           
protected static long NanoMuliplier
           
 
Constructor Summary
TimestampHelper()
           
 
Method Summary
static Timestamp getNanoPrecisionTimestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MilliMuliplier

protected static final long MilliMuliplier
See Also:
Constant Field Values

MicroMuliplier

protected static final long MicroMuliplier
See Also:
Constant Field Values

NanoMuliplier

protected static final long NanoMuliplier
See Also:
Constant Field Values
Constructor Detail

TimestampHelper

public TimestampHelper()
Method Detail

getNanoPrecisionTimestamp

public static Timestamp getNanoPrecisionTimestamp()


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.