Annotation Interface Query
Annotation to declare finder queries directly on repository methods.
- Author:
- Alex Shvid, Matthew T. Adams, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration to define statement idempotency. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecifies whether to allow filtering using query derivation without astring query.booleanReturns whether the defined query should be executed as a count projection.booleanReturns whether the defined query should be executed as an exists projection.Specifies whether theCQL queryisRequest.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 queryisRequest.isIdempotent().SELECTstatements are consideredidempotentby 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
-