|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--oajava.sql.xo_tm
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 |
public static final int SECOND
public static final int MINUTE
public static final int HOUR
public static final int DAY_OF_MONTH
public static final int MONTH
public static final int YEAR
public static final int DAY_OF_WEEK
public static final int DAY_OF_YEAR
public static final int IS_DST
public static final int FRACTION
| Constructor Detail |
public xo_tm()
public xo_tm(int hh,
int mi,
int ss,
int ff)
hh - Hourmi - Minutess - Secondff - Fraction of a second
public xo_tm(int yyyy,
int mm,
int dd)
yyyy - Yearmm - Monthdd - Day
public xo_tm(int yyyy,
int mm,
int dd,
int hh,
int mi,
int ss)
yyyy - Yearmm - Monthdd - Dayhh - Hourmi - Minutess - Second
public xo_tm(int yyyy,
int mm,
int dd,
int hh,
int mi,
int ss,
int ff)
yyyy - Yearmm - Monthdd - Dayhh - Hourmi - Minutess - Secondff - Fraction of a second| Method Detail |
public void setVal(int field,
int value)
field - Field number as described in Field Summary.value - value for the field.public int getVal(int field)
field - Field number as described in Field Summary.
public void setVal(int yyyy,
int mm,
int dd)
yyyy - Yearmm - Monthdd - Day
public void setVal(int hh,
int mi,
int ss,
int ff)
hh - Hourmi - Minutess - Secondff - Fraction of a second
public void setVal(int yyyy,
int mm,
int dd,
int hh,
int mi,
int ss)
yyyy - Yearmm - Monthdd - Dayhh - Hourmi - Minutess - Secondff - Fraction of a second
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||