Enum StatementType
- java.lang.Object
-
- java.lang.Enum<StatementType>
-
- org.apache.cassandra.cql3.statements.StatementType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StatementType>
public enum StatementType extends java.lang.Enum<StatementType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowClusteringColumnSlices()Checks this type of statement allow the where clause to contains clustering column slices.booleanallowNonPrimaryKeyInWhereClause()Checks if this type of statement allow non primary key in the where clause.booleanallowPartitionKeyRanges()Checks this statement allow the where clause to contains missing partition key components or token relation.booleanallowUseOfSecondaryIndices()Checks if this type of statement allow the use of secondary indices.booleanisDelete()Checks if this type is a delete.booleanisInsert()Checks if this type is an insert.booleanisSelect()Checks if this type is a select.booleanisUpdate()Checks if this type is an update.static StatementTypevalueOf(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.
-
-
-
Enum Constant Detail
-
INSERT
public static final StatementType INSERT
-
UPDATE
public static final StatementType UPDATE
-
DELETE
public static final StatementType DELETE
-
SELECT
public static final StatementType SELECT
-
-
Method Detail
-
values
public static StatementType[] 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 (StatementType c : StatementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatementType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isInsert
public boolean isInsert()
Checks if this type is an insert.- Returns:
trueif this type is an insert,falseotherwise.
-
isUpdate
public boolean isUpdate()
Checks if this type is an update.- Returns:
trueif this type is an update,falseotherwise.
-
isDelete
public boolean isDelete()
Checks if this type is a delete.- Returns:
trueif this type is a delete,falseotherwise.
-
isSelect
public boolean isSelect()
Checks if this type is a select.- Returns:
trueif this type is a select,falseotherwise.
-
allowPartitionKeyRanges
public boolean allowPartitionKeyRanges()
Checks this statement allow the where clause to contains missing partition key components or token relation.- Returns:
trueif this statement allow the where clause to contains missing partition key components or token relation,falseotherwise.
-
allowClusteringColumnSlices
public boolean allowClusteringColumnSlices()
Checks this type of statement allow the where clause to contains clustering column slices.- Returns:
trueif this type of statement allow the where clause to contains clustering column slices,falseotherwise.
-
allowNonPrimaryKeyInWhereClause
public boolean allowNonPrimaryKeyInWhereClause()
Checks if this type of statement allow non primary key in the where clause.- Returns:
trueif this type of statement allow non primary key in the where clause,falseotherwise.
-
allowUseOfSecondaryIndices
public boolean allowUseOfSecondaryIndices()
Checks if this type of statement allow the use of secondary indices.- Returns:
trueif this type of statement allow the use of secondary indices,falseotherwise.
-
-