[
https://issues.apache.org/jira/browse/JCR-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763881#action_12763881
]
Marcel Reutegger commented on JCR-2343:
---------------------------------------
Please note that jackrabbit already provides such a functionality.
- To convert from JQOM to SQL2 simply call:
qom.getStatement()
- To convert from SQL2 to JQOM call:
QueryManager qm = ...
QueryObjectModel qom = (QueryObjectModel) qm.createQuery(sql2,
Query.JCR_SQL2);
I'm not sure if anything else beyond that is really needed.
> 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.