com.alibaba.druid.sql.dialect.mysql.ast.expr
Enum MySqlIntervalUnit

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

public enum MySqlIntervalUnit
extends Enum<MySqlIntervalUnit>


Enum Constant Summary
DAY
           
DAY_HOUR
           
DAY_MICROSECOND
           
DAY_MINUTE
           
DAY_SECOND
           
HOUR
           
HOUR_MICROSECOND
           
HOUR_MINUTE
           
HOUR_SECOND
           
MICROSECOND
           
MINUTE
           
MINUTE_MICROSECOND
           
MINUTE_SECOND
           
MONTH
           
QUARTER
           
SECOND
           
SECOND_MICROSECOND
           
WEEK
           
YEAR
           
YEAR_MONTH
           
 
Method Summary
static MySqlIntervalUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MySqlIntervalUnit[] 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 MySqlIntervalUnit YEAR

YEAR_MONTH

public static final MySqlIntervalUnit YEAR_MONTH

QUARTER

public static final MySqlIntervalUnit QUARTER

MONTH

public static final MySqlIntervalUnit MONTH

WEEK

public static final MySqlIntervalUnit WEEK

DAY

public static final MySqlIntervalUnit DAY

DAY_HOUR

public static final MySqlIntervalUnit DAY_HOUR

DAY_MINUTE

public static final MySqlIntervalUnit DAY_MINUTE

DAY_SECOND

public static final MySqlIntervalUnit DAY_SECOND

DAY_MICROSECOND

public static final MySqlIntervalUnit DAY_MICROSECOND

HOUR

public static final MySqlIntervalUnit HOUR

HOUR_MINUTE

public static final MySqlIntervalUnit HOUR_MINUTE

HOUR_SECOND

public static final MySqlIntervalUnit HOUR_SECOND

HOUR_MICROSECOND

public static final MySqlIntervalUnit HOUR_MICROSECOND

MINUTE

public static final MySqlIntervalUnit MINUTE

MINUTE_SECOND

public static final MySqlIntervalUnit MINUTE_SECOND

MINUTE_MICROSECOND

public static final MySqlIntervalUnit MINUTE_MICROSECOND

SECOND

public static final MySqlIntervalUnit SECOND

SECOND_MICROSECOND

public static final MySqlIntervalUnit SECOND_MICROSECOND

MICROSECOND

public static final MySqlIntervalUnit MICROSECOND
Method Detail

values

public static MySqlIntervalUnit[] 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 (MySqlIntervalUnit c : MySqlIntervalUnit.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MySqlIntervalUnit 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.