Annotation Interface Query


Annotation to mark query methods in user-defined repositories that are supplied with Google Query Language custom queries.
Since:
1.1
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    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.
    Takes a Cloud Datastore GQL string to define the actual query to be executed.
  • Element Details

    • value

      String value
      Takes a Cloud Datastore GQL string to define the actual query to be executed. This one will take precedence over the method name then.
      Returns:
      the SQL Cloud Datstore query string.
      Default:
      ""
    • count

      boolean count
      Returns whether the defined query should be executed as a count projection.
      Returns:
      true if this query method returns a count. false otherwise
      Default:
      false
    • exists

      boolean exists
      Returns whether the defined query should be executed as an exists projection.
      Returns:
      true if this query method returns an exists boolean. false otherwise
      Default:
      false