Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 17990 invoked from network); 7 Mar 2005 00:33:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Mar 2005 00:33:26 -0000 Received: (qmail 33992 invoked by uid 500); 7 Mar 2005 00:33:26 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 33977 invoked by uid 99); 7 Mar 2005 00:33:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of edgarpoce@gmail.com designates 64.233.184.201 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 06 Mar 2005 16:33:24 -0800 Received: by wproxy.gmail.com with SMTP id 69so1074481wri for ; Sun, 06 Mar 2005 16:33:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=VPCrK1vvlx44aWUHVNvVrcQyZHyuay88SGB7g3FRvnn/hnjeeFj5y5JTIhY1N3PPKBT/owpdjYzFPIT+FeTsxky0Usm82wfnWkEQR2Gd3O4d26TG9MXJVPgGskZ2xDRHsbLkssjAQX+I3rQ4hoo0DhQA5Ak7LAv25NLL1/MVkfA= Received: by 10.54.39.51 with SMTP id m51mr1321wrm; Sun, 06 Mar 2005 16:33:22 -0800 (PST) Received: from ?192.168.0.187? ([24.232.12.20]) by smtp.gmail.com with ESMTP id d6sm264898wra.2005.03.06.16.33.20; Sun, 06 Mar 2005 16:33:22 -0800 (PST) Message-ID: <422BA14A.8070803@gmail.com> Date: Sun, 06 Mar 2005 21:33:14 -0300 From: Edgar Poce User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: JCR API question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi In the specification doc 0.16.2 the following methods are defined for QueryResult: QueryResult.getPropertyNames(), QueryResult.getRows() and QueryResult.getNodes() (page 110). But in the page 112 it says "The column names of the table are returned by QueryResult.getColumnNames". it should say getPropertyNames(), or am I missing something? in 8.6.3 SQL EBNF it says "select ::= SELECT ('*' | proplist )" So it seems jcr doesn't support any kind of expression nor function in the select clause. e.g. something like "SELECT concat(myapp:myprop1, myapp:myprop2) as customColumn from myapp:mynodetype" would be really handy. And it could be retrieved with QueryResult.getColumnName("customColumn"). What do you think? regards edgar