Annotation Interface Query


Annotation to declare finder queries directly on repository methods.
Author:
Alex Shvid, Matthew T. Adams, Mark Paluch
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Enumeration to define statement idempotency.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specifies whether to allow filtering using query derivation without a string query.
    boolean
    Returns whether the defined query should be executed as a count projection.
    boolean
    Returns whether the defined query should be executed as an exists projection.
    Specifies whether the CQL query is Request.isIdempotent().
    A Cassandra CQL3 string to define the actual query to be executed.
  • Element Details

    • value

      String value
      A Cassandra CQL3 string to define the actual query to be executed. Placeholders ?0, ?1, etc are supported.
      Default:
      ""
    • allowFiltering

      boolean allowFiltering
      Specifies whether to allow filtering using query derivation without a string query.
      Since:
      2.0
      Default:
      false
    • idempotent

      Query.Idempotency idempotent
      Specifies whether the CQL query is Request.isIdempotent(). SELECT statements are considered idempotent by default.
      Since:
      2.2
      Default:
      UNDEFINED
    • count

      boolean count
      Returns whether the defined query should be executed as a count projection.
      Since:
      2.1
      Default:
      false
    • exists

      boolean exists
      Returns whether the defined query should be executed as an exists projection.
      Since:
      2.1
      Default:
      false