Enum OracleDateTimeUnit
- java.lang.Object
-
- java.lang.Enum<OracleDateTimeUnit>
-
- com.alibaba.druid.sql.dialect.oracle.ast.expr.OracleDateTimeUnit
-
- All Implemented Interfaces:
Serializable,Comparable<OracleDateTimeUnit>
public enum OracleDateTimeUnit extends Enum<OracleDateTimeUnit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYHOURMINUTEMONTHSECONDTIMEZONE_ABBRTIMEZONE_HOURETIMEZONE_MINUTETIMEZONE_REGIONYEAR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OracleDateTimeUnitvalueOf(String name)Returns the enum constant of this type with the specified name.static OracleDateTimeUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final OracleDateTimeUnit YEAR
-
MONTH
public static final OracleDateTimeUnit MONTH
-
DAY
public static final OracleDateTimeUnit DAY
-
HOUR
public static final OracleDateTimeUnit HOUR
-
MINUTE
public static final OracleDateTimeUnit MINUTE
-
SECOND
public static final OracleDateTimeUnit SECOND
-
TIMEZONE_HOURE
public static final OracleDateTimeUnit TIMEZONE_HOURE
-
TIMEZONE_MINUTE
public static final OracleDateTimeUnit TIMEZONE_MINUTE
-
TIMEZONE_REGION
public static final OracleDateTimeUnit TIMEZONE_REGION
-
TIMEZONE_ABBR
public static final OracleDateTimeUnit TIMEZONE_ABBR
-
-
Method Detail
-
values
public static OracleDateTimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OracleDateTimeUnit c : OracleDateTimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OracleDateTimeUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-