org.wso2.registry.jdbc.queries
Class QueryProcessor
java.lang.Object
org.wso2.registry.jdbc.queries.QueryProcessor
- Direct Known Subclasses:
- SQLQueryProcessor
public abstract class QueryProcessor
- extends java.lang.Object
All query processors should extend this class. All configured query processor implementations
will be associated with a query type. Once an execute opration is called for a query of that
type, the associated query processor is invoked. Then all the tasks required for processing that
query should be taken over by the query processor implementation. This processing steps include
interpreting of given query parameters, constructing the resulting resource object, etc.
Field Summary |
protected javax.sql.DataSource |
dataSource
|
protected org.wso2.usermanager.Realm |
realm
|
Constructor Summary |
QueryProcessor(javax.sql.DataSource dataSource,
org.wso2.usermanager.Realm realm)
|
Method Summary |
abstract Resource |
executeQuery(Resource query,
java.util.Map parameters)
This method will be called when a query of a registered type is executed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSource
protected javax.sql.DataSource dataSource
realm
protected org.wso2.usermanager.Realm realm
QueryProcessor
public QueryProcessor(javax.sql.DataSource dataSource,
org.wso2.usermanager.Realm realm)
executeQuery
public abstract Resource executeQuery(Resource query,
java.util.Map parameters)
throws RegistryException
- This method will be called when a query of a registered type is executed.
- Parameters:
query
- query resource, possibly containing the query stringparameters
- query parameters as name->value pairs
- Returns:
-
- Throws:
RegistryException
Copyright © 2007 Apache Web Services Project. All Rights Reserved.