Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45E5F17C30 for ; Sat, 18 Oct 2014 09:05:34 +0000 (UTC) Received: (qmail 43739 invoked by uid 500); 18 Oct 2014 09:05:34 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 43714 invoked by uid 500); 18 Oct 2014 09:05:34 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 43704 invoked by uid 99); 18 Oct 2014 09:05:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Oct 2014 09:05:34 +0000 Date: Sat, 18 Oct 2014 09:05:33 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAY-1960) ExpressionFactory.exp(..) , and(..), or(..) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAY-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrus Adamchik updated CAY-1960: --------------------------------- Description: Based on the https://github.com/apache/cayenne/pull/16 pull request... 1. let's refactor Expression.fromString(..) into ExpressionFactory.exp(..). Parameters may be passed either as a Map (traditional parameter binding) or as a vararg in which case parameters will be bound positionally regardless of their names. In the later case names are ignored so e.g. the same name mentioned twice can be bound to two different values. Also the later case would not allow subexpression pruning. 2. Let's add shortcuts and(..), or(..) for ExpressionFactory.joinExp(..) was: Based on the https://github.com/apache/cayenne/pull/16 pull request... 1. let's refactor Expression.fromString(..) into ExpressionFactory.exp(..) and Parameters may be passed either as a Map (traditional parameter binding) or as a vararg in which case parameters will be bound positionally regardless of their names. In the later case names are ignored so e.g. the same name mentioned twice can be bound to two different values. Also the later case would not allow subexpression pruning. 2. Let's add shortcuts and(..), or(..) for ExpressionFactory.joinExp(..) > ExpressionFactory.exp(..) , and(..), or(..) > ------------------------------------------- > > Key: CAY-1960 > URL: https://issues.apache.org/jira/browse/CAY-1960 > Project: Cayenne > Issue Type: Sub-task > Reporter: Andrus Adamchik > Assignee: Andrus Adamchik > Fix For: 3.2.M2 > > > Based on the https://github.com/apache/cayenne/pull/16 pull request... > 1. let's refactor Expression.fromString(..) into ExpressionFactory.exp(..). Parameters may be passed either as a Map (traditional parameter binding) or as a vararg in which case parameters will be bound positionally regardless of their names. > In the later case names are ignored so e.g. the same name mentioned twice can be bound to two different values. Also the later case would not allow subexpression pruning. > 2. Let's add shortcuts and(..), or(..) for ExpressionFactory.joinExp(..) -- This message was sent by Atlassian JIRA (v6.3.4#6332)