org.wso2.carbon.registry.core.jdbc.queries
Class QueryProcessorManager

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.queries.QueryProcessorManager

public class QueryProcessorManager
extends Object

The class is handling the query processing


Constructor Summary
QueryProcessorManager(DataAccessManager dataAccessManager, RegistryContext registryContext)
          Construct a query processor manager object from the data source and registry context.
 
Method Summary
 Collection executeQuery(Registry registry, Resource queryResource, Map parameters)
          Execute a query using the query processor associated with the media type of the query.
 QueryProcessor getQueryProcessor(String queryType)
          Return the query processor with the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryProcessorManager

public QueryProcessorManager(DataAccessManager dataAccessManager,
                             RegistryContext registryContext)
                      throws RegistryException
Construct a query processor manager object from the data source and registry context.

Parameters:
dataAccessManager - the data access manager object
registryContext - registry context
Throws:
RegistryException - throws if the construction failed.
Method Detail

getQueryProcessor

public QueryProcessor getQueryProcessor(String queryType)
Return the query processor with the given type.

Parameters:
queryType - the query type
Returns:
the query processor of the given type.

executeQuery

public Collection executeQuery(Registry registry,
                               Resource queryResource,
                               Map parameters)
                        throws RegistryException
Execute a query using the query processor associated with the media type of the query.

Parameters:
registry - the registry
queryResource - the query as a resource.
parameters - the custom parameters to be passed to the query.
Returns:
a collection containing query results as children
Throws:
RegistryException - throws if the query execution failed.


Copyright © 2012 WSO2 Inc. All Rights Reserved.