public enum MySqlIntervalUnit extends Enum<MySqlIntervalUnit>
限定符和类型 | 方法和说明 |
---|---|
static MySqlIntervalUnit |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MySqlIntervalUnit[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MySqlIntervalUnit YEAR
public static final MySqlIntervalUnit YEAR_MONTH
public static final MySqlIntervalUnit QUARTER
public static final MySqlIntervalUnit MONTH
public static final MySqlIntervalUnit WEEK
public static final MySqlIntervalUnit DAY
public static final MySqlIntervalUnit DAY_HOUR
public static final MySqlIntervalUnit DAY_MINUTE
public static final MySqlIntervalUnit DAY_SECOND
public static final MySqlIntervalUnit DAY_MICROSECOND
public static final MySqlIntervalUnit HOUR
public static final MySqlIntervalUnit HOUR_MINUTE
public static final MySqlIntervalUnit HOUR_SECOND
public static final MySqlIntervalUnit HOUR_MICROSECOND
public static final MySqlIntervalUnit MINUTE
public static final MySqlIntervalUnit MINUTE_SECOND
public static final MySqlIntervalUnit MINUTE_MICROSECOND
public static final MySqlIntervalUnit SECOND
public static final MySqlIntervalUnit SECOND_MICROSECOND
public static final MySqlIntervalUnit MICROSECOND
public static MySqlIntervalUnit[] values()
for (MySqlIntervalUnit c : MySqlIntervalUnit.values()) System.out.println(c);
public static MySqlIntervalUnit valueOf(String name)
name
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerExceptionCopyright © 2012 Alibaba Group. All Rights Reserved.