public final class NativeQueryParameterValueResolver extends LifecycleAwareValueResolverWrapper<String>
ValueResolver implementation which translates DsqlQuerys to queries in the Native Query Language.
If the query provided is not a DsqlQuery then is considered a Native Query and returned as it is.
delegate, muleContext| Constructor and Description |
|---|
NativeQueryParameterValueResolver(ValueResolver<String> queryResolver,
Class<? extends org.mule.runtime.extension.api.dsql.QueryTranslator> translator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
String |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
dispose, initialise, start, stoppublic NativeQueryParameterValueResolver(ValueResolver<String> queryResolver, Class<? extends org.mule.runtime.extension.api.dsql.QueryTranslator> translator)
public String resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
eventresolve in interface ValueResolver<String>resolve in class LifecycleAwareValueResolverWrapper<String>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. Notice
that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<String>isDynamic in class LifecycleAwareValueResolverWrapper<String>falseCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.