com.ibm.pdq.runtime.statement
Enum SqlStatementType
java.lang.Object
java.lang.Enum<SqlStatementType>
com.ibm.pdq.runtime.statement.SqlStatementType
- All Implemented Interfaces:
- Serializable, Comparable<SqlStatementType>
-
public enum SqlStatementType
- extends Enum<SqlStatementType>
Describes the type of an SQL statement.
Enum Constant Summary
Method Summary
ALTER
public static final SqlStatementType ALTER
CALL
public static final SqlStatementType CALL
COMMENT
public static final SqlStatementType COMMENT
COMPOUND
public static final SqlStatementType COMPOUND
CREATE
public static final SqlStatementType CREATE
DECLAREGLOBALTEMPTABLE
public static final SqlStatementType DECLAREGLOBALTEMPTABLE
DELETE
public static final SqlStatementType DELETE
DROP
public static final SqlStatementType DROP
GRANT
public static final SqlStatementType GRANT
INSERT
public static final SqlStatementType INSERT
LABEL
public static final SqlStatementType LABEL
MERGE
public static final SqlStatementType MERGE
OTHERSQL
public static final SqlStatementType OTHERSQL
QUERY
public static final SqlStatementType QUERY
RENAME
public static final SqlStatementType RENAME
REVOKE
public static final SqlStatementType REVOKE
SET
public static final SqlStatementType SET
SINGLE_ROW_QUERY
@Deprecated
public static final SqlStatementType SINGLE_ROW_QUERY
- Deprecated.
UPDATE
public static final SqlStatementType UPDATE
VALUES
public static final SqlStatementType VALUES
XQUERY
public static final SqlStatementType XQUERY
getSqlStatementType
public static SqlStatementType getSqlStatementType(String type)
isQuery
public boolean isQuery()
valueOf
public static SqlStatementType 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
values
public static final SqlStatementType[] values()
-
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SqlStatementType c : SqlStatementType.values())
System.out.println(c);
-
- Returns:
- an array containing the constants of this enum type, in the order they're declared