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
Modifier and TypeOptional ElementDescriptionboolean
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 valueTakes 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 countReturns 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 existsReturns 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
-