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";
thanks
johann sorel
Geomatys