|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.QueryEngineImpl
Executes queries on resource property sets. The engine looks for evaluators under "java:comp/env/query/eval" context.
ResourcePropertySet| Field Summary | |
private java.util.Hashtable |
evaluators
|
private static org.globus.util.I18n |
i18n
|
(package private) static org.apache.commons.logging.Log |
logger
|
private static java.lang.String |
QUERY_EVALUATOR_CONTEXT
|
| Constructor Summary | |
QueryEngineImpl()
|
|
| Method Summary | |
java.lang.Object |
executeQuery(QueryExpressionType expression,
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 |
refresh()
Reinitializes the evaluators list from JNDI context. |
void |
registerEvaluator(ExpressionEvaluator evaluator)
registers a new evaluator that can be used to evaluate queries on a service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private static java.lang.String QUERY_EVALUATOR_CONTEXT
private java.util.Hashtable evaluators
| Constructor Detail |
public QueryEngineImpl()
| Method Detail |
public void refresh()
registerEvaluator() function they will be lost.
public void registerEvaluator(ExpressionEvaluator evaluator)
QueryEngine
registerEvaluator in interface QueryEngineevaluator - implementation of evaluator to be used for evaluating
queries
specified in its XML Schema definition.public ExpressionEvaluator getEvaluator(java.lang.String dialect)
QueryEngine
getEvaluator in interface QueryEngine
public java.lang.Object executeQuery(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
throws UnsupportedQueryDialectException,
QueryEvaluationException,
InvalidQueryExpressionException,
QueryException
QueryEngine
executeQuery in interface QueryEngineexpression - 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.
InvalidQueryExpressionException - if query expression is invalid.
QueryException - if any other error
UnsupportedQueryDialectException - if query dialect is
unsupported.
QueryEvaluationException - if query evaluation fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||