You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by sorel <jo...@geomatys.fr> on 2009/10/02 09:43:48 UTC
Some missing constants and utility classes in JCR-commun module
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
Re: Some missing constants and utility classes in JCR-commun module
Posted by Alexander Klimetschek <ak...@day.com>.
On Fri, Oct 2, 2009 at 09:43, sorel <jo...@geomatys.fr> 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
alexander.klimetschek@day.com