public enum StatementType extends java.lang.Enum<StatementType>
Modifier and Type | Method and Description |
---|---|
boolean |
allowClusteringColumnSlices()
Checks this type of statement allow the where clause to contains clustering column slices.
|
boolean |
allowNonPrimaryKeyInWhereClause()
Checks if this type of statement allow non primary key in the where clause.
|
boolean |
allowPartitionKeyRanges()
Checks this statement allow the where clause to contains missing partition key components or token relation.
|
boolean |
allowUseOfSecondaryIndices()
Checks if this type of statement allow the use of secondary indices.
|
boolean |
isDelete()
Checks if this type is a delete.
|
boolean |
isInsert()
Checks if this type is an insert.
|
boolean |
isSelect()
Checks if this type is a select.
|
boolean |
isUpdate()
Checks if this type is an update.
|
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 INSERT
public static final StatementType UPDATE
public static final StatementType DELETE
public static final StatementType SELECT
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 boolean isInsert()
true
if this type is an insert, false
otherwise.public boolean isUpdate()
true
if this type is an update, false
otherwise.public boolean isDelete()
true
if this type is a delete, false
otherwise.public boolean isSelect()
true
if this type is a select, false
otherwise.public boolean allowPartitionKeyRanges()
true
if this statement allow the where clause to contains missing partition key components
or token relation, false
otherwise.public boolean allowClusteringColumnSlices()
true
if this type of statement allow the where clause to contains clustering column slices,
false
otherwise.public boolean allowNonPrimaryKeyInWhereClause()
true
if this type of statement allow non primary key in the where clause,
false
otherwise.public boolean allowUseOfSecondaryIndices()
true
if this type of statement allow the use of secondary indices,
false
otherwise.Copyright © 2018 The Apache Software Foundation