Annotation Interface Query
This annotation is meant to be applied to support easy query building by using DataSense Query Language, DSQL.
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.
- Since:
- 1.0
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends org.mule.runtime.api.metadata.resolving.QueryEntityResolver>AQueryEntityResolverimplementation used to resolve metadata about the entities that can be queried using DSQL.Class<? extends QueryTranslator>AQueryTranslatorimplementation used to translate a query from DSQL to the Native Query Language -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAOutputTypeResolverthat receives aStringwith the query when it's written in the Native Query Language.
-
Element Details
-
translator
Class<? extends QueryTranslator> translatorAQueryTranslatorimplementation used to translate a query from DSQL to the Native Query Language -
entityResolver
Class<? extends org.mule.runtime.api.metadata.resolving.QueryEntityResolver> entityResolverAQueryEntityResolverimplementation used to resolve metadata about the entities that can be queried using DSQL.
-
-
-
nativeOutputResolver
Class<? extends org.mule.runtime.api.metadata.resolving.OutputTypeResolver<String>> nativeOutputResolverAOutputTypeResolverthat receives aStringwith 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
NullQueryMetadataResolverimplementation is used, returning an empty set of entities and a void metadata type as the entity structure.- Default:
- org.mule.runtime.extension.api.metadata.NullQueryMetadataResolver.class
-