Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 96880 invoked from network); 21 Jun 2010 09:35:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 09:35:46 -0000 Received: (qmail 16293 invoked by uid 500); 21 Jun 2010 09:35:46 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 15904 invoked by uid 500); 21 Jun 2010 09:35:44 -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 15897 invoked by uid 99); 21 Jun 2010 09:35:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 09:35:43 +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; Mon, 21 Jun 2010 09:35:35 +0000 Received: from source ([209.85.211.189]) by eu3sys201aob101.postini.com ([207.126.154.11]) with SMTP ID DSNKTB8yUu5lum7uAc76Wb34uHSXXNTJdpzX@postini.com; Mon, 21 Jun 2010 09:35:15 UTC Received: by ywh27 with SMTP id 27so2369384ywh.19 for ; Mon, 21 Jun 2010 02:35:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.171.1 with SMTP id y1mr3598922ano.216.1277112913964; Mon, 21 Jun 2010 02:35:13 -0700 (PDT) Received: by 10.100.7.19 with HTTP; Mon, 21 Jun 2010 02:35:13 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Jun 2010 11:35:13 +0200 Message-ID: Subject: Re: Can anybody explain this (related to javax.jcr.query) From: Alexander Klimetschek To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jun 21, 2010 at 10:07, Subash Chaturanga wrote: > In JCR Queries ,say for instance > > " select * from nt:resource " > > Does this means select all nodes which has the node type "resource". Yes, but the node type is called "nt:resource" (nt being a prefix for a full namespace), independently of the sql query. >As I am > a new commer ,it is really great if anyone can tell me how to query it? > > I went through the JSR 283 spec ,but couldn't get an exact meaning. > Does Selectors means the thing "select" we know in SQL queries ? Joins : > means combining several "select" queries as in SQL ? Yes, it follows the standard SQL semantics, albeit the feature set is very specific to JCR. > Is it always a set of nodes we get returned in an execute command? Yes. > Are there any references other than the spec to follow ? You could look at the earlier JCR-SQL query language in JCR 1.0 (JSR-170) that is now deprecated, but still available in Jackrabbit 2.x. This is similar to JCR-SQL2, but without joins and other features. Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com