Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 53114 invoked from network); 3 Sep 2008 18:03:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2008 18:03:21 -0000 Received: (qmail 1262 invoked by uid 500); 3 Sep 2008 18:03:18 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 1250 invoked by uid 500); 3 Sep 2008 18:03:18 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 1239 invoked by uid 99); 3 Sep 2008 18:03:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 11:03:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ari@ish.com.au designates 59.167.240.32 as permitted sender) Received: from [59.167.240.32] (HELO fish.ish.com.au) (59.167.240.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 18:02:18 +0000 Received: from [10.29.62.12] (port=52180) by fish.ish.com.au with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1KawxM-0008T2-1d for user@cayenne.apache.org CTCH-RefID str=0001.0A150205.48BED13D.0067,ss=1,fgs=0; Thu, 04 Sep 2008 04:19:53 +1000 Message-Id: <4477CE3B-89F2-41BD-86F3-B9D1E50AB5D0@ish.com.au> From: Aristedes Maniatis To: user@cayenne.apache.org In-Reply-To: <7B2153DF-E09F-4B9E-8879-245E5BAF799D@earthlink.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Result Set Filters? Date: Thu, 4 Sep 2008 04:02:35 +1000 References: <7B2153DF-E09F-4B9E-8879-245E5BAF799D@earthlink.net> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org On 04/09/2008, at 3:43 AM, Joe Baldwin wrote: > Lets say that I might want to filter my result set by eliminating > certain entries. What is the recommended (i.e. best practice) > method of filtering the result set so that you can produce a Java > List that is a subset of the original result set? You can use Cayenne expressions to filter a list in memory. http://cayenne.apache.org/doc/in-memory-evaluation.html Ari Maniatis --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A