net.wotonomy.foundation
Class NSTimestamp

java.lang.Object
  extended by java.util.Date
      extended by java.sql.Timestamp
          extended by net.wotonomy.foundation.NSTimestamp
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>, NSCoding

public class NSTimestamp
extends java.sql.Timestamp
implements NSCoding

A channel to the database, representing a communication stream within a context of an adaptor.

Version:
$Revision: 892 $
Author:
cgruber@israfil.net, $Author: cgruber $
See Also:
Serialized Form

Nested Class Summary
static class NSTimestamp.IntRef
           
 
Nested classes/interfaces inherited from interface net.wotonomy.foundation.NSCoding
NSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support
 
Field Summary
static NSTimestamp DistantFuture
           
static NSTimestamp DistantPast
           
 
Constructor Summary
NSTimestamp()
           
NSTimestamp(java.util.Date date)
           
NSTimestamp(int i, int j, int k, int l, int i1, int j1, java.util.TimeZone timezone)
           
NSTimestamp(long l)
           
NSTimestamp(long l, int i)
           
NSTimestamp(long l, int i, java.util.TimeZone timezone)
           
NSTimestamp(long l, NSTimestamp nstimestamp)
           
NSTimestamp(long l, java.util.TimeZone timezone)
           
NSTimestamp(java.sql.Timestamp timestamp)
           
 
Method Summary
 long _getTimeInMillis()
           
 java.lang.Class classForCoder()
           
 int compare(NSTimestamp nstimestamp)
           
static long currentTimeIntervalSinceReferenceDate()
           
 long dayOfCommonEra()
           
 int dayOfMonth()
           
 int dayOfWeek()
           
 int dayOfYear()
           
static java.lang.Object decodeObject(NSCoder nscoder)
           
static NSTimestamp distantFuture()
           
static NSTimestamp distantPast()
           
 NSTimestamp earlierTimestamp(NSTimestamp nstimestamp)
           
 void encodeWithCoder(NSCoder nscoder)
           
 long getTime()
           
 void gregorianUnitsSinceTimestamp(NSTimestamp.IntRef intref, NSTimestamp.IntRef intref1, NSTimestamp.IntRef intref2, NSTimestamp.IntRef intref3, NSTimestamp.IntRef intref4, NSTimestamp.IntRef intref5, NSTimestamp nstimestamp)
           
 int hourOfDay()
           
 NSTimestamp laterTimestamp(NSTimestamp nstimestamp)
           
 int microsecondOfSecond()
           
static long millisecondsToTimeInterval(long l)
           
 int minuteOfHour()
           
 int monthOfYear()
           
 int secondOfMinute()
           
 void setDate(int i)
          Deprecated. This method deprecated in parent java.util.Date
 void setHours(int i)
          Deprecated. This method deprecated in parent java.util.Date
 void setMinutes(int i)
          Deprecated. This method deprecated in parent java.util.Date
 void setMonth(int i)
          Deprecated. This method deprecated in parent java.util.Date
 void setNanos(int i)
           
 void setSeconds(int i)
          Deprecated. This method deprecated in parent java.util.Date
 void setTime(long l)
           
 void setYear(int i)
          Deprecated. This method deprecated in parent java.util.Date
 long timeIntervalSinceNow()
           
 long timeIntervalSinceReferenceDate()
           
 long timeIntervalSinceTimestamp(NSTimestamp nstimestamp)
           
static long timeIntervalToMilliseconds(long l)
           
 NSTimestamp timestampByAddingGregorianUnits(int i, int j, int k, int l, int i1, int j1)
           
 NSTimestamp timestampByAddingTimeInterval(long l)
           
 NSTimeZone timeZone()
           
 java.lang.String toString()
           
 int yearOfCommonEra()
           
 
Methods inherited from class java.sql.Timestamp
after, before, compareTo, compareTo, equals, equals, getNanos, valueOf
 
Methods inherited from class java.util.Date
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DistantPast

public static final NSTimestamp DistantPast

DistantFuture

public static final NSTimestamp DistantFuture
Constructor Detail

NSTimestamp

public NSTimestamp()

NSTimestamp

public NSTimestamp(long l)

NSTimestamp

public NSTimestamp(long l,
                   int i)

NSTimestamp

public NSTimestamp(long l,
                   NSTimestamp nstimestamp)

NSTimestamp

public NSTimestamp(long l,
                   java.util.TimeZone timezone)

NSTimestamp

public NSTimestamp(long l,
                   int i,
                   java.util.TimeZone timezone)

NSTimestamp

public NSTimestamp(int i,
                   int j,
                   int k,
                   int l,
                   int i1,
                   int j1,
                   java.util.TimeZone timezone)

NSTimestamp

public NSTimestamp(java.util.Date date)

NSTimestamp

public NSTimestamp(java.sql.Timestamp timestamp)
Method Detail

currentTimeIntervalSinceReferenceDate

public static long currentTimeIntervalSinceReferenceDate()

distantFuture

public static NSTimestamp distantFuture()

distantPast

public static NSTimestamp distantPast()

millisecondsToTimeInterval

public static long millisecondsToTimeInterval(long l)

timeIntervalToMilliseconds

public static long timeIntervalToMilliseconds(long l)

classForCoder

public java.lang.Class classForCoder()

decodeObject

public static java.lang.Object decodeObject(NSCoder nscoder)

encodeWithCoder

public void encodeWithCoder(NSCoder nscoder)

timestampByAddingGregorianUnits

public NSTimestamp timestampByAddingGregorianUnits(int i,
                                                   int j,
                                                   int k,
                                                   int l,
                                                   int i1,
                                                   int j1)

timestampByAddingTimeInterval

public NSTimestamp timestampByAddingTimeInterval(long l)

dayOfCommonEra

public long dayOfCommonEra()

dayOfMonth

public int dayOfMonth()

dayOfWeek

public int dayOfWeek()

dayOfYear

public int dayOfYear()

hourOfDay

public int hourOfDay()

microsecondOfSecond

public int microsecondOfSecond()

minuteOfHour

public int minuteOfHour()

monthOfYear

public int monthOfYear()

secondOfMinute

public int secondOfMinute()

yearOfCommonEra

public int yearOfCommonEra()

gregorianUnitsSinceTimestamp

public void gregorianUnitsSinceTimestamp(NSTimestamp.IntRef intref,
                                         NSTimestamp.IntRef intref1,
                                         NSTimestamp.IntRef intref2,
                                         NSTimestamp.IntRef intref3,
                                         NSTimestamp.IntRef intref4,
                                         NSTimestamp.IntRef intref5,
                                         NSTimestamp nstimestamp)

timeIntervalSinceTimestamp

public long timeIntervalSinceTimestamp(NSTimestamp nstimestamp)

timeIntervalSinceNow

public long timeIntervalSinceNow()

timeIntervalSinceReferenceDate

public long timeIntervalSinceReferenceDate()

compare

public int compare(NSTimestamp nstimestamp)

earlierTimestamp

public NSTimestamp earlierTimestamp(NSTimestamp nstimestamp)

laterTimestamp

public NSTimestamp laterTimestamp(NSTimestamp nstimestamp)

toString

public java.lang.String toString()
Overrides:
toString in class java.sql.Timestamp

timeZone

public NSTimeZone timeZone()

_getTimeInMillis

public long _getTimeInMillis()

setNanos

public void setNanos(int i)
Overrides:
setNanos in class java.sql.Timestamp

setDate

public void setDate(int i)
Deprecated. This method deprecated in parent java.util.Date

Overrides:
setDate in class java.util.Date

setHours

public void setHours(int i)
Deprecated. This method deprecated in parent java.util.Date

Overrides:
setHours in class java.util.Date

setMinutes

public void setMinutes(int i)
Deprecated. This method deprecated in parent java.util.Date

Overrides:
setMinutes in class java.util.Date

setMonth

public void setMonth(int i)
Deprecated. This method deprecated in parent java.util.Date

Overrides:
setMonth in class java.util.Date

setSeconds

public void setSeconds(int i)
Deprecated. This method deprecated in parent java.util.Date

Overrides:
setSeconds in class java.util.Date

setTime

public void setTime(long l)
Overrides:
setTime in class java.sql.Timestamp

getTime

public long getTime()
Overrides:
getTime in class java.sql.Timestamp

setYear

public void setYear(int i)
Deprecated. This method deprecated in parent java.util.Date

Overrides:
setYear in class java.util.Date


Copyright © 2006 null. All Rights Reserved.