com.alibaba.druid.sql.dialect.oracle.ast.expr
Enum OracleDateTimeUnit

java.lang.Object
  extended by java.lang.Enum<OracleDateTimeUnit>
      extended by com.alibaba.druid.sql.dialect.oracle.ast.expr.OracleDateTimeUnit
All Implemented Interfaces:
Serializable, Comparable<OracleDateTimeUnit>

public enum OracleDateTimeUnit
extends Enum<OracleDateTimeUnit>


Enum Constant Summary
DAY
           
HOUR
           
MINUTE
           
MONTH
           
SECOND
           
TIMEZONE_ABBR
           
TIMEZONE_HOURE
           
TIMEZONE_MINUTE
           
TIMEZONE_REGION
           
YEAR
           
 
Method Summary
static OracleDateTimeUnit valueOf(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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2012 Alibaba Group. All Rights Reserved.