[
https://issues.apache.org/jira/browse/JCR-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763894#action_12763894
]
Marcel Reutegger commented on JCR-2343:
---------------------------------------
I see. In that case you can use QueryObjectModelBuilder in
jackrabbit-spi-commons.
- from JQOM to SQL2:
QueryObjectModelBuilderRegistry.getQueryObjectModelBuilder(Query.JCR_SQL2).toString(qom);
- from SQL2 to JQOM:
QueryObjectModelFactory qf = ...
ValueFactory vf = ...
QueryObjectModelBuilder qomBuilder =
QueryObjectModelBuilderRegistry.getQueryObjectModelBuilder(Query.JCR_SQL2);
qomBuilder.createQueryObjectModel(sql2, qf, vf);
> Utility class to tranform JCR-SQL2 to/from JCR-JQOM
> ---------------------------------------------------
>
> Key: JCR-2343
> URL: https://issues.apache.org/jira/browse/JCR-2343
> Project: Jackrabbit Content Repository
> Issue Type: New Feature
> Components: jackrabbit-jcr-commons
> Affects Versions: 2.0-alpha12
> Reporter: johann sorel
> Priority: Minor
>
> The JCR2 doc specify that both contain the same thing and can be translated
> from one to another
> in a straightforward manner. The jackrabbit-jcr-commons module should offer a
> utility class to transform
> from one language to another in a generic way,
> for exemple :
> - String toSQL2(QueryObjectModel qom)
> - QueryObjectModel toJQOM(QueryObjectModelFactory factory, String query)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.