Return-Path: X-Original-To: apmail-db-jdo-dev-archive@www.apache.org Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77CBB9BD0 for ; Fri, 3 Feb 2012 18:20:21 +0000 (UTC) Received: (qmail 81644 invoked by uid 500); 3 Feb 2012 18:20:21 -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 81631 invoked by uid 99); 3 Feb 2012 18:20:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 18:20:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 18:20:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 76C9918BED2 for ; Fri, 3 Feb 2012 18:19:57 +0000 (UTC) Date: Fri, 3 Feb 2012 18:19:57 +0000 (UTC) From: "Andy Jefferson (Commented) (JIRA)" To: jdo-dev@db.apache.org Message-ID: <1971952324.8393.1328293197488.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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 [ https://issues.apache.org/jira/browse/JDO-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199921#comment-13199921 ] Andy Jefferson commented on JDO-650: ------------------------------------ No support for this JDO syntax present. There is obviously support for the associated JPA "case" syntax, so any volunteer could write the necessary code to do it for JDO > 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, tck > Affects Versions: JDO 2 maintenance release 2 (2.2) > Reporter: Michael Bouschen > Assignee: Michael Bouschen > Fix For: JDO 3 maintenance release 1 (3.1) > > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira