Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 57911 invoked from network); 30 Oct 2007 20:16:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2007 20:16:14 -0000 Received: (qmail 96643 invoked by uid 500); 30 Oct 2007 20:16:01 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 96626 invoked by uid 99); 30 Oct 2007 20:16:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 13:16:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 20:16:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 15C2171422C for ; Tue, 30 Oct 2007 13:15:51 -0700 (PDT) Message-ID: <15382836.1193775351086.JavaMail.jira@brutus> Date: Tue, 30 Oct 2007 13:15:51 -0700 (PDT) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-446) Add subqueries APIs In-Reply-To: <7579411.1165619900998.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538901 ] Craig Russell commented on JDO-446: ----------------------------------- Here's what the spec currently says about Map method: The Map version of the method treats the key of each map entry as the name of the parameter in the subquery, with or without the leading ":", and the value as the name of the expression in the outer query. If the trimmed expression is the empty String for either the parameter or the value of the String[], or for any map key or value, that expression is ignored. And for the Object... method: The String[] version of the method binds the named expressions in turn to parameters in the order in which they are declared in the subquery, or in the order they are found in the filter if not explicitly declared in the subquery. > Add subqueries APIs > ------------------- > > Key: JDO-446 > URL: https://issues.apache.org/jira/browse/JDO-446 > Project: JDO > Issue Type: New Feature > Components: api2, api2-legacy > Affects Versions: JDO 2 final > Reporter: Michelle Caisse > Assignee: Michael Bouschen > Fix For: JDO 2 maintenance release 1 > > Attachments: Query-patch.txt, subquery-api.patch > > > In 14, add subqueries to permit e.g. select from Employee where this.salary > (select avg(salary) from Employee) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.