Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 70004 invoked from network); 2 Oct 2009 10:07:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 10:07:37 -0000 Received: (qmail 95942 invoked by uid 500); 2 Oct 2009 10:07:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 95851 invoked by uid 500); 2 Oct 2009 10:07:36 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 95843 invoked by uid 99); 2 Oct 2009 10:07:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 10:07:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.87 as permitted sender) Received: from [207.126.148.87] (HELO eu3sys201aog101.obsmtp.com) (207.126.148.87) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 Oct 2009 10:07:26 +0000 Received: from source ([209.85.222.196]) by eu3sys201aob101.postini.com ([207.126.154.11]) with SMTP ID DSNKSsXQybnlmRydOOo/qzJybU5SLKJ2H7AJ@postini.com; Fri, 02 Oct 2009 10:07:05 UTC Received: by pzk34 with SMTP id 34so958019pzk.11 for ; Fri, 02 Oct 2009 03:07:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.18.10 with SMTP id v10mr740044rvi.232.1254478024507; Fri, 02 Oct 2009 03:07:04 -0700 (PDT) In-Reply-To: <4AC5AF34.8000007@geomatys.fr> References: <1956168029.1254466763468.JavaMail.jira@brutus> <4AC5AF34.8000007@geomatys.fr> Date: Fri, 2 Oct 2009 12:07:04 +0200 Message-ID: Subject: Re: Some missing constants and utility classes in JCR-commun module From: Alexander Klimetschek To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 2, 2009 at 09:43, sorel 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 translat= ed > 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 jackrab= bit > =A02.0-alpha12. > (All constants coming from the new types of JCR2) > > here is a small list (It's not a complete list) : > =A0 public static final String NT_ADDRESS =3D "nt:address"; > =A0 public static final String MIX_CREATED =3D "mix:created"; > =A0 public static final String MIX_LANGUAGE =3D "mix:language"; > =A0 public static final String MIX_LASTMODIFIED =3D "mix:lastModified"; > =A0 public static final String MIX_MIMETYPE =3D "mix:mimeType"; > =A0 public static final String MIX_TITLE =3D "mix:title"; > =A0 public static final String JCR_HOST =3D "jcr:host"; > =A0 public static final String JCR_PROTOCOL =3D "jcr:protocol"; > =A0 public static final String JCR_PORT =3D "jcr:port"; > =A0 public static final String JCR_REPOSITORY =3D "jcr:repository"; > =A0 public static final String JCR_WORKSPACE =3D "jcr:workspace"; > =A0 public static final String JCR_ID =3D "jcr:id"; > =A0 public static final String JCR_CREATEDBY =3D "jcr:createdBy"; > =A0 public static final String JCR_LASTMODIFIEDBY =3D "jcr:lastModifiedBy= "; > =A0 public static final String JCR_TITLE =3D "jcr:title"; > =A0 public static final String JCR_DESCRIPTION =3D "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/sr= c/main/java/org/apache/jackrabbit/JcrConstants.java?view=3Dmarkup [2] http://jackrabbit.apache.org/issue-tracker.html PS: it's "jackrabbit-jcr-commons" --=20 Alexander Klimetschek alexander.klimetschek@day.com