org.wso2.registry.jdbc.queries
Class SQLQueryProcessor

java.lang.Object
  extended by org.wso2.registry.jdbc.queries.QueryProcessor
      extended by org.wso2.registry.jdbc.queries.SQLQueryProcessor

public class SQLQueryProcessor
extends QueryProcessor


Field Summary
 
Fields inherited from class org.wso2.registry.jdbc.queries.QueryProcessor
dataSource, realm
 
Constructor Summary
SQLQueryProcessor(javax.sql.DataSource dataSource, UserRealm realm)
           
 
Method Summary
 Collection 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
 

Constructor Detail

SQLQueryProcessor

public SQLQueryProcessor(javax.sql.DataSource dataSource,
                         UserRealm realm)
Method Detail

executeQuery

public Collection executeQuery(Resource query,
                               java.util.Map parameters)
                        throws RegistryException
Description copied from class: QueryProcessor
This method will be called when a query of a registered type is executed.

Specified by:
executeQuery in class QueryProcessor
Parameters:
query - query resource, possibly containing the query string
parameters - query parameters as name->value pairs
Returns:
QueryProcessor impl should map the query results to a resource and return the resource. If the query may return multiple results it can return a collection resource, containing the paths of individual results. Then a URL handler can be registered to process those individual paths and return actual resulting resource.
Throws:
RegistryException - QueryProcessor impl should handle all exceptions and throw RegisrtyException if the exception has to propagated to the client.


Copyright © 2007 Apache Web Services Project. All Rights Reserved.