skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : Using the setVal method with a selected field
 

Using the setVal method with a selected field

Sets the selected field's value.
void setVal(
int field,
int value)
Table 94. Parameters for setVal
Parameter
Type
Description
INPUT
field
int
The field to set. See Table 95 for the field identifier constants.
value
int
The value to set. Must be in range as specified in Table 95.
RETURN
NONE
Table 95. xo_tm Field Identifier Constants
Field Identifier Constant
Description
SECOND
Seconds after the minute - [0,59].
MINUTE
Minutes after the hour - [0,59].
HOUR
Hours since midnight - [0,23].
DAY_OF_MONTH
Day of the month - [1,31].
MONTH
Months since January - [0,11].
YEAR
Years after 0 A.D.
DAY_OF_WEEK
Days since Sunday - [0,6].
DAY_OF_YEAR
Days since January 1 - [0,365].
IS_DST
Daylight savings time flag.
FRACTION
Number of billionths of a second and ranges from 0 - 999999999).