@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Query
When an ComponentModel
parameter is annotated with this annotation, you can assume your query parameter has been
translated to native query language using the specified QueryTranslator
.
Modifier and Type | Required Element and Description |
---|---|
Class<? extends QueryEntityResolver> |
entityResolver
A
QueryEntityResolver implementation used to resolve metadata about the
entities that can be queried using DSQL. |
Class<? extends QueryTranslator> |
translator
A
QueryTranslator implementation used to translate a query from DSQL
to the Native Query Language |
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends OutputTypeResolver<String>> |
nativeOutputResolver
A
OutputTypeResolver that receives a String with the query when it's written in
the Native Query Language. |
public abstract Class<? extends QueryTranslator> translator
QueryTranslator
implementation used to translate a query from DSQL
to the Native Query Languagepublic abstract Class<? extends QueryEntityResolver> entityResolver
QueryEntityResolver
implementation used to resolve metadata about the
entities that can be queried using DSQL.public abstract Class<? extends OutputTypeResolver<String>> nativeOutputResolver
OutputTypeResolver
that receives a String
with the query when it's written in
the Native Query Language. This way the developer can resolved metadata for complex cases when DSQL is
not used.
For default the NullQueryMetadataResolver
implementation is used, returning an empty set of entities
and a void metadata type as the entity structure.
Copyright © 2018. All rights reserved.