| Modifier and Type | Field and Description |
|---|---|
| private static final BigDecimal | |
| private static final BigDecimal | |
| private static final BigInteger | |
| public static final int | CENTURY
Century. |
| public static final int | DATE_TRUNC
DATE_TRUNC() (non-standard). |
| public static final int | DATEADD
DATEADD() (non-standard). |
| public static final int | DATEDIFF
DATEDIFF() (non-standard). |
| public static final int | DAY
Day of month. |
| public static final int | DAY_OF_WEEK
Day of week (locale-specific). |
| public static final int | DAY_OF_YEAR
Day of year. |
| public static final int | DECADE
Decade. |
| public static final int | DOW
Day of week (locale-specific) for PostgreSQL compatibility. |
| public static final int | EPOCH
Epoch. |
| public static final int | EXTRACT
EXTRACT(). |
| private final int | |
| private static final String[] | |
| private static final int | |
| private final int | |
| public static final int | HOUR
Hour. |
| public static final int | ISO_DAY_OF_WEEK
ISO day of week. |
| public static final int | ISO_WEEK
ISO week. |
| public static final int | ISO_WEEK_YEAR
ISO week-based year. |
| public static final int | LAST_DAY
LAST_DAY() (non-standard); |
| public static final int | MICROSECOND
Microsecond. |
| public static final int | MILLENNIUM
Millennium. |
| public static final int | MILLISECOND
Millisecond. |
| public static final int | MINUTE
Minute. |
| public static final int | MONTH
Month. |
| private static final String[] | |
| public static final int | NANOSECOND
Nanosecond. |
| public static final int | QUARTER
Quarter. |
| public static final int | SECOND
Second. |
| public static final int | TIMEZONE_HOUR
Time zone hour. |
| public static final int | TIMEZONE_MINUTE
Time zone minute. |
| public static final int | TIMEZONE_SECOND
Time zone second. |
| public static final int | WEEK
Week (locale-specific). |
| private static volatile WeekFields | WEEK_FIELDS
Local definitions of day-of-week, week-of-month, and week-of-year. |
| public static final int | WEEK_YEAR
Week-based year (locale-specific). |
| public static final int | YEAR
Year. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Value | |
| private static Value | addYearsMonths(int field, boolean years, long count, Value v, int type, long dateValue, long timeNanos)
|
| private static int | |
| public static Value | Returns: resultthe session session, int the date-time field field, long count to add count, Value value to add to v)DATEADD function. |
| private static long | Returns: the number of crossed boundariesthe session session, int the date-time field field, Value the first date-time value v1, Value the second date-time value v2)Calculate the number of crossed unit boundaries between two timestamps. |
| private static int | |
| pack-priv static int | |
| private static ValueNumeric | |
| private static int | Returns: the valuethe session session, Value the date value date, int the field type field)Get the specified field of a date, however with years normalized to positive or negative, and month starting with 1. |
| private static int | |
| public static int | |
| public static String | Returns: the name of the specified fieldthe date-time field field)Get the name of the specified date-time field. |
| private static int | |
| private static int | |
| public String | |
| public StringBuilder | getUnenclosedSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Get the SQL statement of this expression. |
| public Value | getValue(SessionLocal
the session session, Value the value of first argument v1, Value the value of second argument, or v2)nullOverrides org. Returns the value of this function. |
| private static WeekFields | |
| private static Value | |
| private static int | |
| public Expression | optimize(SessionLocal
the session session)Implements abstract org. Try to optimize the expression. |
| private static Value | Returns: date the truncated valuethe session session, int the date-time field field, Value the date-time value value)Truncate the given date-time value to the specified field. |
| private static long | |
| private static long | |
| private static long |
| BD_NANOS_PER_SECOND | back to summary |
|---|---|
| private static final BigDecimal BD_NANOS_PER_SECOND | |
| BD_SECONDS_PER_DAY | back to summary |
|---|---|
| private static final BigDecimal BD_SECONDS_PER_DAY | |
| BI_SECONDS_PER_DAY | back to summary |
|---|---|
| private static final BigInteger BI_SECONDS_PER_DAY | |
| CENTURY | back to summary |
|---|---|
| public static final int CENTURY Century. | |
| DATE_TRUNC | back to summary |
|---|---|
| public static final int DATE_TRUNC DATE_TRUNC() (non-standard). | |
| DATEADD | back to summary |
|---|---|
| public static final int DATEADD DATEADD() (non-standard). | |
| DATEDIFF | back to summary |
|---|---|
| public static final int DATEDIFF DATEDIFF() (non-standard). | |
| DAY | back to summary |
|---|---|
| public static final int DAY Day of month. | |
| DAY_OF_WEEK | back to summary |
|---|---|
| public static final int DAY_OF_WEEK Day of week (locale-specific). | |
| DAY_OF_YEAR | back to summary |
|---|---|
| public static final int DAY_OF_YEAR Day of year. | |
| DECADE | back to summary |
|---|---|
| public static final int DECADE Decade. | |
| DOW | back to summary |
|---|---|
| public static final int DOW Day of week (locale-specific) for PostgreSQL compatibility. | |
| EPOCH | back to summary |
|---|---|
| public static final int EPOCH Epoch. | |
| EXTRACT | back to summary |
|---|---|
| public static final int EXTRACT EXTRACT(). | |
| field | back to summary |
|---|---|
| private final int field | |
| FIELD_NAMES | back to summary |
|---|---|
| private static final String[] FIELD_NAMES | |
| FIELDS_COUNT | back to summary |
|---|---|
| private static final int FIELDS_COUNT | |
| function | back to summary |
|---|---|
| private final int function | |
| HOUR | back to summary |
|---|---|
| public static final int HOUR Hour. | |
| ISO_DAY_OF_WEEK | back to summary |
|---|---|
| public static final int ISO_DAY_OF_WEEK ISO day of week. | |
| ISO_WEEK | back to summary |
|---|---|
| public static final int ISO_WEEK ISO week. | |
| ISO_WEEK_YEAR | back to summary |
|---|---|
| public static final int ISO_WEEK_YEAR ISO week-based year. | |
| LAST_DAY | back to summary |
|---|---|
| public static final int LAST_DAY LAST_DAY() (non-standard); | |
| MICROSECOND | back to summary |
|---|---|
| public static final int MICROSECOND Microsecond. | |
| MILLENNIUM | back to summary |
|---|---|
| public static final int MILLENNIUM Millennium. | |
| MILLISECOND | back to summary |
|---|---|
| public static final int MILLISECOND Millisecond. | |
| MINUTE | back to summary |
|---|---|
| public static final int MINUTE Minute. | |
| MONTH | back to summary |
|---|---|
| public static final int MONTH Month. | |
| NAMES | back to summary |
|---|---|
| private static final String[] NAMES | |
| NANOSECOND | back to summary |
|---|---|
| public static final int NANOSECOND Nanosecond. | |
| QUARTER | back to summary |
|---|---|
| public static final int QUARTER Quarter. | |
| SECOND | back to summary |
|---|---|
| public static final int SECOND Second. | |
| TIMEZONE_HOUR | back to summary |
|---|---|
| public static final int TIMEZONE_HOUR Time zone hour. | |
| TIMEZONE_MINUTE | back to summary |
|---|---|
| public static final int TIMEZONE_MINUTE Time zone minute. | |
| TIMEZONE_SECOND | back to summary |
|---|---|
| public static final int TIMEZONE_SECOND Time zone second. | |
| WEEK | back to summary |
|---|---|
| public static final int WEEK Week (locale-specific). | |
| WEEK_FIELDS | back to summary |
|---|---|
| private static volatile WeekFields WEEK_FIELDS Local definitions of day-of-week, week-of-month, and week-of-year. | |
| WEEK_YEAR | back to summary |
|---|---|
| public static final int WEEK_YEAR Week-based year (locale-specific). | |
| YEAR | back to summary |
|---|---|
| public static final int YEAR Year. | |
| DateTimeFunction | back to summary |
|---|---|
| public DateTimeFunction(int function, int field, Expression arg1, Expression arg2) | |
| addToTimeZone | back to summary |
|---|---|
| private static Value addToTimeZone(int field, long count, Value v, int type, long dateValue, long timeNanos) | |
| addYearsMonths | back to summary |
|---|---|
| private static Value addYearsMonths(int field, boolean years, long count, Value v, int type, long dateValue, long timeNanos) | |
| century | back to summary |
|---|---|
| private static int century(int year) | |
| dateadd | back to summary |
|---|---|
| public static Value dateadd(SessionLocal session, int field, long count, Value v) DATEADD function.
| |
| datediff | back to summary |
|---|---|
| private static long datediff(SessionLocal session, int field, Value v1, Value v2) Calculate the number of crossed unit boundaries between two timestamps. This method is supported for MS SQL Server compatibility. DATEDIFF(YEAR, '2004-12-31', '2005-01-01') = 1
| |
| decade | back to summary |
|---|---|
| private static int decade(int year) | |
| extractDateTime | back to summary |
|---|---|
| pack-priv static int extractDateTime(SessionLocal session, Value date, int field) | |
| extractEpoch | back to summary |
|---|---|
| private static ValueNumeric extractEpoch(SessionLocal session, Value value) | |
| extractInteger | back to summary |
|---|---|
| private static int extractInteger(SessionLocal session, Value date, int field) Get the specified field of a date, however with years normalized to positive or negative, and month starting with 1.
| |
| extractInterval | back to summary |
|---|---|
| private static int extractInterval(Value date, int field) | |
| getField | back to summary |
|---|---|
| public static int getField(String name) Get date-time field for the specified name.
| |
| getFieldName | back to summary |
|---|---|
| public static String getFieldName(int field) Get the name of the specified date-time field.
| |
| getLocalDayOfWeek | back to summary |
|---|---|
| private static int getLocalDayOfWeek(long dateValue) | |
| getLocalWeekOfYear | back to summary |
|---|---|
| private static int getLocalWeekOfYear(long dateValue) | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name. | |
| getUnenclosedSQL | back to summary |
|---|---|
| public StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags) Overrides org. Doc from org. Get the SQL statement of this expression. This may not always be the original SQL statement, especially after optimization. Enclosing '(' and ')' are never appended.
| |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session, Value v1, Value v2) Overrides org. Doc from org. Returns the value of this function.
| |
| getWeekFields | back to summary |
|---|---|
| private static WeekFields getWeekFields() | |
| lastDay | back to summary |
|---|---|
| private static Value lastDay(SessionLocal session, Value v) | |
| millennium | back to summary |
|---|---|
| private static int millennium(int year) | |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Implements abstract org. Doc from org. Try to optimize the expression.
| |
| truncateDate | back to summary |
|---|---|
| private static Value truncateDate(SessionLocal session, int field, Value value) Truncate the given date-time value to the specified field.
| |
| truncateToWeek | back to summary |
|---|---|
| private static long truncateToWeek(long dateValue, int firstDayOfWeek) | |
| truncateToWeekYear | back to summary |
|---|---|
| private static long truncateToWeekYear(long dateValue, int firstDayOfWeek, int minimalDaysInFirstWeek) | |
| weekdiff | back to summary |
|---|---|
| private static long weekdiff(long absolute1, long absolute2, int firstDayOfWeek) | |