|
||||||||||
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(DataSource dataSource,
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 |
---|
public QueryProcessorManager(DataSource dataSource, RegistryContext registryContext) throws RegistryException
dataSource
- the data source objectregistryContext
- registry context
RegistryException
- throws if the construction failed.Method Detail |
---|
public QueryProcessor getQueryProcessor(String queryType)
queryType
- the query type
public 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 |