org.globus.wsrf
Interface QueryEngine

All Known Implementing Classes:
QueryEngineImpl

public interface QueryEngine

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.

See Also:
ExpressionEvaluator

Method Summary
 Object executeQuery(QueryExpressionType queryExpression, ResourcePropertySet resourcePropertySet)
          Executes a query against a resource property set.
 ExpressionEvaluator getEvaluator(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

registerEvaluator

public void registerEvaluator(ExpressionEvaluator evaluator)
registers a new evaluator that can be used to evaluate queries on a service.
Parameters:
evaluator - implementation of evaluator to be used for evaluating queries specified in its XML Schema definition.

executeQuery

public Object executeQuery(QueryExpressionType queryExpression,
                           ResourcePropertySet resourcePropertySet)
                    throws Exception
Executes a query against a resource property set. The appropraite ExpressionEvaluator is used for the query based on the dialect attribute.
Parameters:
queryExpression - query expression
resourcePropertySet - resource properties set to execute the query against
Throws:
Exception - if the query could not be evaluated

getEvaluator

public ExpressionEvaluator getEvaluator(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)
Returns:
the matching expression evaluator or null if none was found


Copyright © 1999-2003 University of Chicago and The University of Southern California. All rights reserved.