com.ibm.pdq.runtime.statement

Enum SqlStatementType

  1. java.lang.Object
  2. extended byjava.lang.Enum<SqlStatementType>
  3. extended bycom.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 and Description
ALTER
CALL
COMMENT
COMPOUND
CREATE
DECLAREGLOBALTEMPTABLE
DELETE
DROP
GRANT
INSERT
LABEL
MERGE
OTHERSQL
QUERY
RENAME
REVOKE
SET
SET_METHOD
SINGLE_ROW_QUERY
Deprecated.
UPDATE
VALUES
XQUERY

Method Summary

Modifier and Type Method and Description
  1. static
  2. SqlStatementType
getSqlStatementType(String type)
  1. boolean
isQuery()
  1. boolean
isSqlSetOrSetMethod()
  1. static
  2. SqlStatementType
valueOf(String name)
Returns the enum constant of this type with the specified name.
  1. static
  2. SqlStatementType[]
values()
Returns an array containing the constants of this enum type, in the order they are 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

SET_METHOD

public static final SqlStatementType SET_METHOD

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()
    

    isSqlSetOrSetMethod

    public boolean isSqlSetOrSetMethod()
    

    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
    NullPointerException - if the argument is null

    values

    public static SqlStatementType[] 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 (SqlStatementType c : SqlStatementType.values())   
    System.out.println(c);
    
    Returns:
    an array containing the constants of this enum type, in the order they are declared