On Fri, Oct 2, 2009 at 09:43, sorel <[email protected]> wrote: > Hello, > > I was hoping to find some utility classes for query JCR-SQL2 and JCR-JQOM. > The JCR2 doc specify that both contain the same thing and can be translated > from one to another > in a straightforward manner. So i was hoping to find out somewhere two > functions looking like : > > - String toSQL2(QueryObjectModel qom) > - QueryObjectModel toJQOM(QueryObjectModelFactory factory, String query) > > I believe those exist in jackrabbit and if they do exist I would like to > know > if those could be moved in the jcr-commun module ? > > > there are also several missing constants in class JCRConstants in jackrabbit > 2.0-alpha12. > (All constants coming from the new types of JCR2) > > here is a small list (It's not a complete list) : > public static final String NT_ADDRESS = "nt:address"; > public static final String MIX_CREATED = "mix:created"; > public static final String MIX_LANGUAGE = "mix:language"; > public static final String MIX_LASTMODIFIED = "mix:lastModified"; > public static final String MIX_MIMETYPE = "mix:mimeType"; > public static final String MIX_TITLE = "mix:title"; > public static final String JCR_HOST = "jcr:host"; > public static final String JCR_PROTOCOL = "jcr:protocol"; > public static final String JCR_PORT = "jcr:port"; > public static final String JCR_REPOSITORY = "jcr:repository"; > public static final String JCR_WORKSPACE = "jcr:workspace"; > public static final String JCR_ID = "jcr:id"; > public static final String JCR_CREATEDBY = "jcr:createdBy"; > public static final String JCR_LASTMODIFIEDBY = "jcr:lastModifiedBy"; > public static final String JCR_TITLE = "jcr:title"; > public static final String JCR_DESCRIPTION = "jcr:description";
Yes, they are still missing in the trunk [1]. Could you file a JIRA issue [2] for that and maybe provide a patch? Thanks! [1] http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java?view=markup [2] http://jackrabbit.apache.org/issue-tracker.html PS: it's "jackrabbit-jcr-commons" -- Alexander Klimetschek [email protected]
