Am 02.06.15 um 01:39 schrieb Bertrand Delacretaz:
> On Wed, May 27, 2015 at 10:35 AM, Bertrand Delacretaz 
> FWIW I've played a bit with the Oak query code to see if its parsers
> are reusable.
> 
> That's not the case out of the box but it looks like refactoring Oak's
> SQL2Parser and XPathToSQL2Converter to provide access to the abstract
> syntax tree that they generate wouldn't be too hard.
> 
> Going this way would allow us to reuse (a subset of) the JCR query
> languages, instead of inventing yet another one.
> 
Which is a) not possible today, b) a dangerous route as we have to
clearly define the subset and c) still ugly;

Keep also in mind it's not just the provider that has to implement it,
but for sorting also the resource resolver implementation needs to be
aware of it.

I think we really should complete our abstraction.

Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

Reply via email to