|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The QueryEngine interface is used to map queries on the service
data of a service to the appropriate ExpressionEvaluators and
then return the result. ExpressionEvaluators can be
preconfigured or dynamically added at runtime.
ExpressionEvaluator| Method Summary | |
java.lang.Object |
executeQuery(QueryExpressionType queryExpression,
ResourcePropertySet resourcePropertySet)
Executes a query against a resource property set. |
ExpressionEvaluator |
getEvaluator(java.lang.String dialect)
Gets the evaluator currently registered to handle an expression of the specified qualified name (from the top level element of the XML Schema definition of the expression) |
void |
registerEvaluator(ExpressionEvaluator evaluator)
registers a new evaluator that can be used to evaluate queries on a service. |
| Method Detail |
public void registerEvaluator(ExpressionEvaluator evaluator)
evaluator - implementation of evaluator to be used for evaluating
queries
specified in its XML Schema definition.
public java.lang.Object executeQuery(QueryExpressionType queryExpression,
ResourcePropertySet resourcePropertySet)
throws UnsupportedQueryDialectException,
QueryEvaluationException,
InvalidQueryExpressionException,
QueryException
queryExpression - query expressionresourcePropertySet - resource properties set to execute the query
against
SOAPElment or
DOM Element.
If the result object returned is null an empty query result
is returned.
UnsupportedQueryDialectException - if query dialect is
unsupported.
QueryEvaluationException - if query evaluation fails.
InvalidQueryExpressionException - if query expression is invalid.
QueryException - if any other errorpublic ExpressionEvaluator getEvaluator(java.lang.String dialect)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||