public enum StatementType extends java.lang.Enum<StatementType>
Enum Constant and Description |
---|
ALTER |
BEGIN |
CREATE |
DECLARE |
DELETE |
DROP |
INSERT |
ROLLBACK |
SELECT |
SET |
UNKNOWN |
UPDATE |
Modifier and Type | Method and Description |
---|---|
static StatementType |
getStatementType(java.lang.String query) |
static StatementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StatementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatementType SELECT
public static final StatementType UPDATE
public static final StatementType DELETE
public static final StatementType INSERT
public static final StatementType CREATE
public static final StatementType DROP
public static final StatementType ALTER
public static final StatementType BEGIN
public static final StatementType DECLARE
public static final StatementType ROLLBACK
public static final StatementType SET
public static final StatementType UNKNOWN
public static StatementType[] values()
for (StatementType c : StatementType.values()) System.out.println(c);
public static StatementType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static StatementType getStatementType(java.lang.String query)