public class SpecFuncDateTimeInfo extends SpecFuncInfo
Modifier and Type | Field and Description |
---|---|
static int |
BIWEEK
Field number for
get and set indicates biweekly. |
static int |
DATE
Field number for
get and set indicates the
days of the month. |
static java.lang.String |
DATETIME_BENCHMARKPOINT_1900
String value of the benchmark point.
|
static java.lang.String |
DEFAULT_DATETIME_BENCHMARKPOINT
String value of the default benchmark point.
|
static int |
FRIDAY
Value of the
DAY_OF_WEEK field indicates Friday. |
static int |
HALFMONTH
Field number for
get and set indicates half a month. |
static int |
HALFYEAR
Field number for
get and set indicates half a year. |
static int |
HOUR
Field number for
get and set indicates the
hours of the morning or afternoon. |
static int |
MINUTE
Field number for
get and set indicates the
minutes within the hour. |
static int |
MONDAY
Value of the
DAY_OF_WEEK field indicates Monday. |
static int |
MONTH
Field number for
get and set indicates the
month. |
static int |
QUARTER
Field number for
get and set indicates a quarter of a year. |
static int |
SATURDAY
Value of the
DAY_OF_WEEK field indicates Saturday. |
static int |
SECOND
Field number for
get and set indicates the
seconds within the minute. |
static int |
SUNDAY
Value of the
DAY_OF_WEEK field indicates Sunday. |
static int |
THURSDAY
Value of the
DAY_OF_WEEK field indicates Thursday. |
static int |
TUESDAY
Value of the
DAY_OF_WEEK field indicates Tuesday. |
static int |
WEDNESDAY
Value of the
DAY_OF_WEEK field indicates Wednesday. |
static int |
WEEK
Field number for
get and set indicates weekly. |
static int |
YEAR
Field number for
get and set indicates the year. |
DATETIME_INTERVALS, NUM_INTERVALS, STRING_INTERVALS, VALUE_CHANGE
Constructor and Description |
---|
SpecFuncDateTimeInfo()
Constructs a Special Function definition of Date/Time type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBenchPoint()
Gets the benchmark point of date/time grouping.
|
int |
getFirstDayOfWeek()
Gets the int value of the First Day of Week.
|
int |
getType()
Gets the Special Function's type.
|
int |
getUnit()
Gets the unit of the interval of the Date or Time.
|
void |
setBenchPoint(java.lang.String benchPoint)
Sets the benchmark point of date/time grouping.
|
void |
setFirstDayOfWeek(int firstDay)
Sets the First Day of Week.
|
void |
setUnit(int unit)
Sets the unit of the interval of the Date or Time.
|
getDesc, getInterNum, getOtherName, setDesc, setInterNum, setOtherName
public static final int YEAR
get
and set
indicates the year.public static final int MONTH
get
and set
indicates the
month. This is a calendar-specific value. The first month of the year is
JANUARY
which is 0; the last depends on the number of
months in a year.#JANUARY
,
#FEBRUARY
,
#MARCH
,
#APRIL
,
#MAY
,
#JUNE
,
#JULY
,
#AUGUST
,
#SEPTEMBER
,
#OCTOBER
,
#NOVEMBER
,
#DECEMBER
,
#UNDECIMBER
public static final int DATE
get
and set
indicates the
days of the month. This is a synonym of DAY_OF_MONTH
. The
first day of the month has the value 1.public static final int HOUR
get
and set
indicates the
hours of the morning or afternoon. HOUR
is used for the
12-hour clock (0 - 11). Noon and midnight are represented by 0, not by
12. E.g., at 10:04:15.250 PM, the HOUR
is 10.public static final int MINUTE
get
and set
indicates the
minutes within the hour. E.g., at 10:04:15.250 PM, the MINUTE
is 4.public static final int SECOND
get
and set
indicates the
seconds within the minute. E.g., at 10:04:15.250 PM, the
SECOND
is 15.public static final int HALFYEAR
get
and set
indicates half a year.public static final int HALFMONTH
get
and set
indicates half a month.public static final int QUARTER
get
and set
indicates a quarter of a year.public static final int BIWEEK
get
and set
indicates biweekly.public static final int WEEK
get
and set
indicates weekly.public static final int SUNDAY
DAY_OF_WEEK
field indicates Sunday.public static final int MONDAY
DAY_OF_WEEK
field indicates Monday.public static final int TUESDAY
DAY_OF_WEEK
field indicates Tuesday.public static final int WEDNESDAY
DAY_OF_WEEK
field indicates Wednesday.public static final int THURSDAY
DAY_OF_WEEK
field indicates Thursday.public static final int FRIDAY
DAY_OF_WEEK
field indicates Friday.public static final int SATURDAY
DAY_OF_WEEK
field indicates Saturday.public static final java.lang.String DEFAULT_DATETIME_BENCHMARKPOINT
public static final java.lang.String DATETIME_BENCHMARKPOINT_1900
public SpecFuncDateTimeInfo()
public int getType()
getType
in class SpecFuncInfo
SpecFuncInfo.DATETIME_INTERVALS
.public int getUnit()
public void setUnit(int unit)
unit
- The unit of the interval of the Date or Time.#SECOND}
,
#MINUTE}
,
#HOUR}
,
#DATE}
,
#MONTH}
,
#QUARTER}
,
#HALFYEAR}
,
#YEAR}
public java.lang.String getBenchPoint()
public void setBenchPoint(java.lang.String benchPoint)
bechPoint
- The String format of the benchmark point of date/time grouping.#DEFAULT_DATETIME_BENCHMARKPOINT}
,
#DATETIME_BENCHMARKPOINT_1900}
public void setFirstDayOfWeek(int firstDay)
firstDay
- The int value of the First Day of Week.#SUNDAY}
,
#MONDAY}
,
#TUESDAY}
,
#MONDAY}
,
#THURSDAY}
,
#FRIDAY}
,
#SATURDAY}
public int getFirstDayOfWeek()
#SUNDAY}
,
#MONDAY}
,
#TUESDAY}
,
#MONDAY}
,
#THURSDAY}
,
#FRIDAY}
,
#SATURDAY}