oajava.sql
Class xo_tm

java.lang.Object
  |
  +--oajava.sql.xo_tm

public class xo_tm
extends java.lang.Object

Class for saving timestamp value.


Field Summary
static int DAY_OF_MONTH
          Day of the month - [1,31]
static int DAY_OF_WEEK
          Days since Sunday - [0,6]
static int DAY_OF_YEAR
          Days since January 1 - [0,365]
static int FRACTION
          Number of billionths of a second and ranges from 0 - 999999999)
static int HOUR
          Hours since midnight - [0,23]
static int IS_DST
          Daylight savings time flag
static int MINUTE
          Minutes after the hour - [0,59]
static int MONTH
          Months since January - [0,11]
static int SECOND
          Seconds after the minute - [0,59]
static int YEAR
          Years after 0 A.D
 
Constructor Summary
xo_tm()
          Intialize the object with zero value(s).
xo_tm(int yyyy, int mm, int dd)
          Intialize the object with specified date value.
xo_tm(int hh, int mi, int ss, int ff)
          Intialize the object with specified time value with fraction of a second.
xo_tm(int yyyy, int mm, int dd, int hh, int mi, int ss)
          Intialize the object with specified date & time value.
xo_tm(int yyyy, int mm, int dd, int hh, int mi, int ss, int ff)
          Intialize the object with specified date & time value with fraction of a second.
 
Method Summary
 int getVal(int field)
          Get the value for a specified field.
 void setVal(int field, int value)
          Set the value for a specified field.
 void setVal(int yyyy, int mm, int dd)
          Set the value for date fields.
 void setVal(int hh, int mi, int ss, int ff)
          Set the value for time fields.
 void setVal(int yyyy, int mm, int dd, int hh, int mi, int ss)
          Set the value for date and time fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECOND

public static final int SECOND
Seconds after the minute - [0,59]

MINUTE

public static final int MINUTE
Minutes after the hour - [0,59]

HOUR

public static final int HOUR
Hours since midnight - [0,23]

DAY_OF_MONTH

public static final int DAY_OF_MONTH
Day of the month - [1,31]

MONTH

public static final int MONTH
Months since January - [0,11]

YEAR

public static final int YEAR
Years after 0 A.D

DAY_OF_WEEK

public static final int DAY_OF_WEEK
Days since Sunday - [0,6]

DAY_OF_YEAR

public static final int DAY_OF_YEAR
Days since January 1 - [0,365]

IS_DST

public static final int IS_DST
Daylight savings time flag

FRACTION

public static final int FRACTION
Number of billionths of a second and ranges from 0 - 999999999)
Constructor Detail

xo_tm

public xo_tm()
Intialize the object with zero value(s).

xo_tm

public xo_tm(int hh,
             int mi,
             int ss,
             int ff)
Intialize the object with specified time value with fraction of a second.

Parameters:
hh - Hour
mi - Minute
ss - Second
ff - Fraction of a second

xo_tm

public xo_tm(int yyyy,
             int mm,
             int dd)
Intialize the object with specified date value.

Parameters:
yyyy - Year
mm - Month
dd - Day

xo_tm

public xo_tm(int yyyy,
             int mm,
             int dd,
             int hh,
             int mi,
             int ss)
Intialize the object with specified date & time value.

Parameters:
yyyy - Year
mm - Month
dd - Day
hh - Hour
mi - Minute
ss - Second

xo_tm

public xo_tm(int yyyy,
             int mm,
             int dd,
             int hh,
             int mi,
             int ss,
             int ff)
Intialize the object with specified date & time value with fraction of a second.

Parameters:
yyyy - Year
mm - Month
dd - Day
hh - Hour
mi - Minute
ss - Second
ff - Fraction of a second
Method Detail

setVal

public void setVal(int field,
                   int value)
Set the value for a specified field.

Parameters:
field - Field number as described in Field Summary.
value - value for the field.

getVal

public int getVal(int field)
Get the value for a specified field.

Parameters:
field - Field number as described in Field Summary.

Returns:
Value for the field.

setVal

public void setVal(int yyyy,
                   int mm,
                   int dd)
Set the value for date fields.

Parameters:
yyyy - Year
mm - Month
dd - Day

setVal

public void setVal(int hh,
                   int mi,
                   int ss,
                   int ff)
Set the value for time fields.

Parameters:
hh - Hour
mi - Minute
ss - Second
ff - Fraction of a second

setVal

public void setVal(int yyyy,
                   int mm,
                   int dd,
                   int hh,
                   int mi,
                   int ss)
Set the value for date and time fields.

Parameters:
yyyy - Year
mm - Month
dd - Day
hh - Hour
mi - Minute
ss - Second
ff - Fraction of a second