Enum Class Query.Idempotency

java.lang.Object
java.lang.Enum<Query.Idempotency>
org.springframework.data.cassandra.repository.Query.Idempotency
All Implemented Interfaces:
Serializable, Comparable<Query.Idempotency>, Constable
Enclosing class:
Query

public static enum Query.Idempotency extends Enum<Query.Idempotency>
Enumeration to define statement idempotency.
Since:
2.2
  • Enum Constant Details

    • UNDEFINED

      public static final Query.Idempotency UNDEFINED
      Undefined state (default for all non-SELECT statements. Leaves Statement.setIdempotent(Boolean) state unchanged.
    • IDEMPOTENT

      public static final Query.Idempotency IDEMPOTENT
      Statement considered idempotent.
    • NON_IDEMPOTENT

      public static final Query.Idempotency NON_IDEMPOTENT
      Statement considered non-idempotent. Sets Statement.setIdempotent(Boolean) to false.
  • Method Details

    • values

      public static Query.Idempotency[] 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

      public static Query.Idempotency valueOf(String name)
      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 name
      NullPointerException - if the argument is null