Module spring.data.cassandra
Enum Class Query.Idempotency
- All Implemented Interfaces:
Serializable
,Comparable<Query.Idempotency>
,Constable
- Enclosing class:
- Query
Enumeration to define statement idempotency.
- Since:
- 2.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStatement considered idempotent.Statement considered non-idempotent.Undefined state (default for all non-SELECT
statements. -
Method Summary
Modifier and TypeMethodDescriptionstatic Query.Idempotency
Returns the enum constant of this class with the specified name.static Query.Idempotency[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Undefined state (default for all non-SELECT
statements. LeavesStatement.setIdempotent(Boolean)
state unchanged. -
IDEMPOTENT
Statement considered idempotent. -
NON_IDEMPOTENT
Statement considered non-idempotent. SetsStatement.setIdempotent(Boolean)
tofalse
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-