Annotation Interface Query
Annotation to declare finder queries directly on repository methods.
- Author:
- Alex Shvid, Matthew T. Adams, Mark Paluch
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration to define statement idempotency. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Specifies whether to allow filtering using query derivation without astring 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 theCQL query
isRequest.isIdempotent()
.A Cassandra CQL3 string to define the actual query to be executed.
-
Element Details
-
value
String valueA Cassandra CQL3 string to define the actual query to be executed. Placeholders?0
,?1
, etc are supported.- Default:
- ""
-
allowFiltering
boolean allowFilteringSpecifies whether to allow filtering using query derivation without astring query
.- Since:
- 2.0
- Default:
- false
-
idempotent
Query.Idempotency idempotentSpecifies whether theCQL query
isRequest.isIdempotent()
.SELECT
statements are consideredidempotent
by default.- Since:
- 2.2
- Default:
- UNDEFINED
-
count
boolean countReturns whether the defined query should be executed as a count projection.- Since:
- 2.1
- Default:
- false
-
exists
boolean existsReturns whether the defined query should be executed as an exists projection.- Since:
- 2.1
- Default:
- false
-