private static interface DynamicQueryHelper.QueryProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
delayedExecute()
Check whether the dynamic query need to delay the interpretation of
execute()
method. |
java.lang.String |
getExpectedQueryName()
Returns the name of the variable that will contain the result of the evaluation.
|
void |
postprocessJavaAst(JavaAst jcode)
Post-process the intermediary AST to clean it up from unneeded nodes that were
automatically created during the progress conversion and add accessor for the query.
|
java.lang.String |
preparePredicate(java.lang.String predicate)
Creates a Progress syntax correct statement that uses the given predicate.
|
java.lang.String getExpectedQueryName()
java.lang.String preparePredicate(java.lang.String predicate)
predicate
- The query predicate that needs to be dynamically executed.boolean delayedExecute()
execute()
method. The execute()
method can be delayed when the query variable is assigned
when declared as field member in the qAst
. The execute()
method must be
delayed when the predicate contains a dynamic-function
or a normal UDF call.true
when the dynamic query need to delay the interpretation of
execute()
method.void postprocessJavaAst(JavaAst jcode) throws ConfigurationException, AstException
jcode
- The intermediary jast as it was generated form prepared predicate.ConfigurationException
- if any error occurs loading the specified configuration profile.AstException
- if any error occurs loading a persisted AST.