[Registry-dev] Queries with named parameters

Jonathan Marsh jonathan at wso2.com
Tue Nov 6 11:26:23 PST 2007


Problem:  The executeQuery method currently takes a path to the query, and a
list of parameter values, which are substituted into the SQL template in
order.  We want to be able to acquire query parameters from a variety of
sources and execute the query with them.  These sources include
programmatically, from a user profile (what queries are on my home page?) or
from a GET url representing a request for search results or a feed.  The
current "in order" mechanism works fine for programmatic access, is OK for
user profiles, but is hard to map into a GET url which uses unordered but
named parameters.

 

Potential solution: push named parameters down into the executeQuery method
and into the SQL template stored in the registry.

 

Jonathan Marsh -  <http://www.wso2.com> http://www.wso2.com -
<http://auburnmarshes.spaces.live.com> http://auburnmarshes.spaces.live.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wso2.org/pipermail/registry-dev/attachments/20071106/991f2140/attachment-0001.htm


More information about the Registry-dev mailing list