Am 15.05.15 um 11:52 schrieb Olaf: > Hi Carsten > > I've actually developed something in this area already. It's basically > prepared statements for XPATH and SQL queries, using the builder pattern. The > solution is mature and in use in numerous large commercial deployments. > > Here is an example of what using it looks like for XPATH statements (quite > the same for SQL) > > xpath("/jcr:root/content/?/?//*[@jcr:primaryType='cq:Page' and > jcr:content/@sling:resourceType='?']") > .setPath(0, "tenant") > .setPath(1, "en") > .set(2, "project/templates/articlePage") > .execute(resourceResolver) > > So, there are placeholders with type-safe setters (most notably for paths, > dates, calendars etc.), simple execution > + a result that allows fast retrieval of resources, adaptation and > pagination, with re-usable thread-safe iterators. > > If you are interested, I would offer to contribute it to what you are > building. > Hi Olaf,
that's great - yes, any help is welcome. I'll publish my current stuff next week and then we can start collaboration on it. Regards Carsten -- Carsten Ziegeler Adobe Research Switzerland cziege...@apache.org