com.ibm.pdq.runtime.statement
Enum SqlStatementType

java.lang.Object
  extended by java.lang.Enum<SqlStatementType>
      extended by 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

Enum Constant Summary
Enum Constant and Description
ALTER
CALL
COMMENT
COMPOUND
CREATE
DECLAREGLOBALTEMPTABLE
DELETE
DROP
GRANT
INSERT
LABEL
MERGE
OTHERSQL
QUERY
RENAME
REVOKE
SET
SINGLE_ROW_QUERY
Deprecated.
UPDATE
VALUES
XQUERY

Method Summary

Method Summary
Return Data TypeMethod Name and Description
static SqlStatementType getSqlStatementType(String type)
boolean isQuery()
static SqlStatementType valueOf(String name)
Returns the enum constant of this type with the specified name.
static SqlStatementType[] values()
Returns an array containing the constants of this enum type, in the order they're 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

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

Method Detail

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