|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.resource.properties.query.impl.QueryEngineImpl
LOG-DONE Executes queries on resource property sets. The engine looks for evaluators under the "wsrf/query/eval" JNDI context.
ResourcePropertySet
Field Summary | |
static Messages |
MSG
|
Constructor Summary | |
QueryEngineImpl()
Creates a new QueryEngineImpl object. |
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 resourcePropertySet)
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 |
refresh()
Reinitializes the evaluators list from JNDI context. |
void |
registerEvaluator(ExpressionEvaluator evaluator)
DOCUMENT_ME |
void |
registerEvaluator(java.net.URI dialect,
ExpressionEvaluator evaluator)
Registers a query expression evaluator for handling query expressions in specified dialect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Messages MSG
Constructor Detail |
public QueryEngineImpl()
QueryEngineImpl
object.
Method Detail |
public ExpressionEvaluator getEvaluator(java.net.URI dialect)
QueryEngine
getEvaluator
in interface QueryEngine
dialect
-
public java.lang.Object executeQuery(QueryExpression queryExpr, ResourcePropertySet resourcePropertySet) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
QueryEngine
executeQuery
in interface QueryEngine
queryExpr
- a query expressionresourcePropertySet
- 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.
InvalidQueryExpressionException
- if query expression is invalid
QueryEvaluationErrorException
- if query evaluation fails
UnknownQueryExpressionDialectException
- if query dialect is unsupportedQueryEngine.executeQuery(org.apache.ws.resource.properties.query.QueryExpression,
org.apache.ws.resource.properties.ResourcePropertySet)
public java.lang.Object executeQuery(QueryExpression queryExpr, java.lang.Object evalContext) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
QueryEngine
executeQuery
in interface QueryEngine
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
InvalidQueryExpressionException
- if query expression is invalid
QueryEvaluationErrorException
- if query evaluation failsQueryEngine#executeQuery(org.apache.ws.resource.properties.query.QueryExpression, Object)}
public void refresh()
registerEvaluator()
function they will be lost.
public void registerEvaluator(ExpressionEvaluator evaluator)
registerEvaluator
in interface QueryEngine
evaluator
- DOCUMENT_MEpublic void registerEvaluator(java.net.URI dialect, ExpressionEvaluator evaluator) throws UnknownQueryExpressionDialectException
QueryEngine
registerEvaluator
in interface QueryEngine
dialect
- evaluator
-
UnknownQueryExpressionDialectFaultException
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 |