org.opensubsystems.core.util
Class TimestampCopy

java.lang.Object
  extended by java.util.Date
      extended by java.sql.Timestamp
          extended by org.opensubsystems.core.util.TimestampCopy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class TimestampCopy
extends java.sql.Timestamp

Timestamp which adds copy constructor which correctly copies nanosecond portion of the original timestamp.

Version:
$Id: TimestampCopy.java,v 1.5 2007/01/07 06:14:01 bastafidli Exp $
Author:
Miro Halas
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
1.3 2006/02/17 06:54:53 bastafidli

Constructor Summary
TimestampCopy(long lTime, int iNanos)
          Constructor which will create exact copy of the timestamp including the nanosecond portion.
TimestampCopy(java.sql.Timestamp original)
          Copy constructor which will create exact copy of the timestamp including the nanosecond portion.
 
Method Summary
 
Methods inherited from class java.sql.Timestamp
after, before, compareTo, compareTo, compareTo, equals, equals, getNanos, getTime, setNanos, setTime, toString, valueOf
 
Methods inherited from class java.util.Date
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimestampCopy

public TimestampCopy(java.sql.Timestamp original)
Copy constructor which will create exact copy of the timestamp including the nanosecond portion.

Parameters:
original - - original timestamp to copy

TimestampCopy

public TimestampCopy(long lTime,
                     int iNanos)
Constructor which will create exact copy of the timestamp including the nanosecond portion.

Parameters:
lTime - - time portion of the timestamp
iNanos - - nanosecond portion of the timestamp


Copyright © 2003 - 2006 OpenSubsystems s.r.o.