Package com.oracle.nosql.spring.data.repository

# Annotation Interface Query

@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) @Documented public @interface Query
Annotation to declare native queries directly on repository methods.

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `boolean`
  `count`
  Returns whether the query defined should be executed as count projection.
  `boolean`
  `delete`
  Returns whether the query defined should delete matching rows.
  `boolean`
  `exists`
  Returns whether the query defined should be executed as exists projection.
  `String`
  `value`
  Takes an Oracle NoSQL DB SQL query string to define the actual query to be executed.

- ## Element Details

  - ### value

    String value
    Takes an Oracle NoSQL DB SQL query string to define the actual query to be executed. This one will take precedence over the method name then.
    Default:
      `""`

  - ### count

    boolean count
    Returns whether the query defined should be executed as count projection.
    Default:
      `false`

  - ### exists

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

  - ### delete

    boolean delete
    Returns whether the query defined should delete matching rows.
    Default:
      `false`