public class SQLQueryProcessor extends Object implements QueryProcessor
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource
DataSource of the registry database.
|
| Constructor and Description |
|---|
SQLQueryProcessor(DataAccessManager dataAccessManager)
Initialize the sql query processor
|
| Modifier and Type | Method and Description |
|---|---|
Collection |
executeQuery(Registry registry,
Resource query,
Map parameters)
This method will be called when a query of a registered type is executed.
|
protected DataSource dataSource
public SQLQueryProcessor(DataAccessManager dataAccessManager)
dataAccessManager - the data access manager to be set.public Collection executeQuery(Registry registry, Resource query, Map parameters) throws RegistryException
QueryProcessorexecuteQuery in interface QueryProcessorregistry - the registry to execute the queryquery - query resource, possibly containing the query stringparameters - query parameters as name->value pairsRegistryException - QueryProcessor impl should handle all exceptions and throw RegistryException if the
exception has to propagated to the client.Copyright © 2015 WSO2 Inc. All Rights Reserved.