jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2343) Utility class to tranform JCR-SQL2 to/from JCR-JQOM
Date Fri, 09 Oct 2009 07:07:31 GMT

    [ 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.


Mime
View raw message