|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.queries.QueryProcessorManager
public class QueryProcessorManager
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. |
void |
setQueryProcessor(String queryType,
QueryProcessor processor)
Registers the provided 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 |
---|
public QueryProcessorManager(DataAccessManager dataAccessManager, RegistryContext registryContext) throws RegistryException
dataAccessManager
- the data access manager objectregistryContext
- registry context
RegistryException
- throws if the construction failed.Method Detail |
---|
public QueryProcessor getQueryProcessor(String queryType)
queryType
- the query type
public void setQueryProcessor(String queryType, QueryProcessor processor)
queryType
- the query typeprocessor
- the query processorpublic Collection executeQuery(Registry registry, Resource queryResource, Map parameters) throws RegistryException
registry
- the registryqueryResource
- the query as a resource.parameters
- the custom parameters to be passed to the query.
RegistryException
- throws if the query execution failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |