Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 38392 invoked from network); 29 Nov 2009 20:51:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Nov 2009 20:51:44 -0000 Received: (qmail 92267 invoked by uid 500); 29 Nov 2009 20:51:44 -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 92256 invoked by uid 99); 29 Nov 2009 20:51:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 20:51:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 20:51:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A1538234C1F0 for ; Sun, 29 Nov 2009 12:51:20 -0800 (PST) Message-ID: <1656710652.1259527880659.JavaMail.jira@brutus> Date: Sun, 29 Nov 2009 20:51:20 +0000 (UTC) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-650) Support for conditional operator ? : in JDOQL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Support for conditional operator ? : in JDOQL --------------------------------------------- Key: JDO-650 URL: https://issues.apache.org/jira/browse/JDO-650 Project: JDO Issue Type: New Feature Components: specification, tck2 Affects Versions: JDO 2 maintenance release 2 Reporter: Michael Bouschen Assignee: Michael Bouschen JDOQL should support the Java conditional operator ? :, e.g. salay >= 1000.0 ? salary : salary * 1.1 The conditional operator can be mapped to the CASE-expression in SQL: CASE WHEN condition THEN thenExpr ELSE elseExpr END. Are there any issues with non-SQL datastores when supporting the conditional operator? Another question: which part of a JDOQL query can include a conditional expression? I propose the query filter, the having clause and the result specification. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.