Enum MySqlStatementType
- java.lang.Object
-
- java.lang.Enum<MySqlStatementType>
-
- com.alibaba.druid.sql.dialect.mysql.ast.clause.MySqlStatementType
-
- All Implemented Interfaces:
Serializable,Comparable<MySqlStatementType>
public enum MySqlStatementType extends Enum<MySqlStatementType>
- Author:
- zz [455910092@qq.com]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MySqlStatementTypegetType(SQLStatement stmt)static MySqlStatementTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MySqlStatementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECT
public static final MySqlStatementType SELECT
-
UPDATE
public static final MySqlStatementType UPDATE
-
INSERT
public static final MySqlStatementType INSERT
-
DELETE
public static final MySqlStatementType DELETE
-
WHILE
public static final MySqlStatementType WHILE
-
IF
public static final MySqlStatementType IF
-
LOOP
public static final MySqlStatementType LOOP
-
BLOCK
public static final MySqlStatementType BLOCK
-
DECLARE
public static final MySqlStatementType DECLARE
-
SELECTINTO
public static final MySqlStatementType SELECTINTO
-
CASE
public static final MySqlStatementType CASE
-
UNDEFINED
public static final MySqlStatementType UNDEFINED
-
-
Field Detail
-
name
public final String name
-
-
Method Detail
-
values
public static MySqlStatementType[] 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 (MySqlStatementType c : MySqlStatementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MySqlStatementType 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
-
getType
public static MySqlStatementType getType(SQLStatement stmt)
-
-