com.alibaba.druid.sql.dialect.oracle.ast.expr
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>
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
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 name
NullPointerException - if the argument is null
Copyright © 2012 Alibaba Group. All Rights Reserved.