public static enum Meta.StatementType extends Enum<Meta.StatementType>
Enum Constant and Description |
---|
ALTER |
CALL |
CREATE |
DELETE |
DROP |
INSERT |
IS_DML |
MERGE |
OTHER_DDL |
OTHER_DML |
SELECT |
UPDATE |
UPSERT |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdate() |
static Meta.StatementType |
fromProto(org.apache.calcite.avatica.proto.Common.StatementType proto) |
org.apache.calcite.avatica.proto.Common.StatementType |
toProto() |
static Meta.StatementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Meta.StatementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Meta.StatementType SELECT
public static final Meta.StatementType INSERT
public static final Meta.StatementType UPDATE
public static final Meta.StatementType DELETE
public static final Meta.StatementType UPSERT
public static final Meta.StatementType MERGE
public static final Meta.StatementType OTHER_DML
public static final Meta.StatementType IS_DML
public static final Meta.StatementType CREATE
public static final Meta.StatementType DROP
public static final Meta.StatementType ALTER
public static final Meta.StatementType OTHER_DDL
public static final Meta.StatementType CALL
public static Meta.StatementType[] values()
for (Meta.StatementType c : Meta.StatementType.values()) System.out.println(c);
public static Meta.StatementType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean canUpdate()
public org.apache.calcite.avatica.proto.Common.StatementType toProto()
public static Meta.StatementType fromProto(org.apache.calcite.avatica.proto.Common.StatementType proto)
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.