Package com.alibaba.druid.sql.ast
Enum SQLCurrentTimeExpr.Type
- java.lang.Object
-
- java.lang.Enum<SQLCurrentTimeExpr.Type>
-
- com.alibaba.druid.sql.ast.SQLCurrentTimeExpr.Type
-
- All Implemented Interfaces:
Serializable,Comparable<SQLCurrentTimeExpr.Type>
- Enclosing class:
- SQLCurrentTimeExpr
public static enum SQLCurrentTimeExpr.Type extends Enum<SQLCurrentTimeExpr.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURDATECURRENT_DATECURRENT_TIMECURRENT_TIMESTAMPCURTIMELOCALTIMELOCALTIMESTAMPSYSDATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLCurrentTimeExpr.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static SQLCurrentTimeExpr.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENT_TIME
public static final SQLCurrentTimeExpr.Type CURRENT_TIME
-
CURRENT_DATE
public static final SQLCurrentTimeExpr.Type CURRENT_DATE
-
CURDATE
public static final SQLCurrentTimeExpr.Type CURDATE
-
CURTIME
public static final SQLCurrentTimeExpr.Type CURTIME
-
CURRENT_TIMESTAMP
public static final SQLCurrentTimeExpr.Type CURRENT_TIMESTAMP
-
LOCALTIME
public static final SQLCurrentTimeExpr.Type LOCALTIME
-
LOCALTIMESTAMP
public static final SQLCurrentTimeExpr.Type LOCALTIMESTAMP
-
SYSDATE
public static final SQLCurrentTimeExpr.Type SYSDATE
-
-
Method Detail
-
values
public static SQLCurrentTimeExpr.Type[] 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 (SQLCurrentTimeExpr.Type c : SQLCurrentTimeExpr.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLCurrentTimeExpr.Type 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
-
-