|
|||||||||||
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(QueryExpression queryExpr,
java.lang.Object evalContext)
Evaluates the expression over the specified context object and returns the result. |
java.lang.Object |
executeQuery(QueryExpression queryExpr,
ResourcePropertySet resourcePropSet)
Executes a query against a resource property set. |
ExpressionEvaluator |
getEvaluator(java.net.URI 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. |
void |
registerEvaluator(java.net.URI dialect,
ExpressionEvaluator evaluator)
Registers a query expression evaluator for handling query expressions in specified dialect. |
Method Detail |
public ExpressionEvaluator getEvaluator(java.net.URI dialect)
public java.lang.Object executeQuery(QueryExpression queryExpr, ResourcePropertySet resourcePropSet) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
queryExpr
- a query expressionresourcePropSet
- the resource properties set to evluate the query expression against
SOAPElement
or DOM Element
. If the
result object returned is null an empty query result is returned.
UnknownQueryExpressionDialectException
- if query dialect is unsupported
QueryEvaluationErrorException
- if query evaluation fails
InvalidQueryExpressionException
- if query expression is invalidpublic java.lang.Object executeQuery(QueryExpression queryExpr, java.lang.Object evalContext) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
queryExpr
- a query expressionevalContext
- the context to evaluate the query expression against
SOAPElement
or DOM Element
. If the
result object returned is null an empty query result is returned.
UnknownQueryExpressionDialectException
- if query dialect is unsupported
QueryEvaluationErrorException
- if query evaluation fails
InvalidQueryExpressionException
- if query expression is invalidpublic void registerEvaluator(ExpressionEvaluator evaluator)
evaluator
- implementation of evaluator to be used for evaluating queries specified in its XML Schema
definition.public void registerEvaluator(java.net.URI dialect, ExpressionEvaluator evaluator) throws UnknownQueryExpressionDialectException
dialect
- a query expression dialectevaluator
- a query expression evaluator
UnknownQueryExpressionDialectException
- if the evaluator does not supoport the specified dialect
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |