public enum SQLIntervalUnit extends Enum<SQLIntervalUnit>
Enum Constant and Description |
---|
DAY |
DAY_HOUR |
DAY_MICROSECOND |
DAY_MINUTE |
DAY_OF_MONTH |
DAY_OF_WEEK |
DAY_OF_YEAR |
DAY_SECOND |
DOW |
DOY |
HOUR |
HOUR_MICROSECOND |
HOUR_MINUTE |
HOUR_SECOND |
MICROSECOND |
MINUTE |
MINUTE_MICROSECOND |
MINUTE_SECOND |
MONTH |
QUARTER |
SECOND |
SECOND_MICROSECOND |
TIMEZONE_HOUR |
TIMEZONE_MINUTE |
WEEK |
YEAR |
YEAR_MONTH |
YEAR_OF_WEEK |
YEAR_TO_MONTH |
YOW |
Modifier and Type | Field and Description |
---|---|
String |
name |
String |
name_lcase |
Modifier and Type | Method and Description |
---|---|
static boolean |
add(Calendar calendar,
int intervalInt,
SQLIntervalUnit unit) |
boolean |
isDateTime() |
static SQLIntervalUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SQLIntervalUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLIntervalUnit YEAR
public static final SQLIntervalUnit YEAR_MONTH
public static final SQLIntervalUnit QUARTER
public static final SQLIntervalUnit MONTH
public static final SQLIntervalUnit WEEK
public static final SQLIntervalUnit DAY
public static final SQLIntervalUnit DAY_HOUR
public static final SQLIntervalUnit DAY_MINUTE
public static final SQLIntervalUnit DAY_SECOND
public static final SQLIntervalUnit DAY_MICROSECOND
public static final SQLIntervalUnit HOUR
public static final SQLIntervalUnit HOUR_MINUTE
public static final SQLIntervalUnit HOUR_SECOND
public static final SQLIntervalUnit HOUR_MICROSECOND
public static final SQLIntervalUnit MINUTE
public static final SQLIntervalUnit MINUTE_SECOND
public static final SQLIntervalUnit MINUTE_MICROSECOND
public static final SQLIntervalUnit SECOND
public static final SQLIntervalUnit SECOND_MICROSECOND
public static final SQLIntervalUnit MICROSECOND
public static final SQLIntervalUnit DAY_OF_WEEK
public static final SQLIntervalUnit DOW
public static final SQLIntervalUnit DAY_OF_MONTH
public static final SQLIntervalUnit DAY_OF_YEAR
public static final SQLIntervalUnit YEAR_OF_WEEK
public static final SQLIntervalUnit YOW
public static final SQLIntervalUnit TIMEZONE_HOUR
public static final SQLIntervalUnit TIMEZONE_MINUTE
public static final SQLIntervalUnit DOY
public static final SQLIntervalUnit YEAR_TO_MONTH
public static SQLIntervalUnit[] values()
for (SQLIntervalUnit c : SQLIntervalUnit.values()) System.out.println(c);
public static SQLIntervalUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean add(Calendar calendar, int intervalInt, SQLIntervalUnit unit)
public boolean isDateTime()
Copyright © 2013–2021 Alibaba Group. All rights reserved.