Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 61026 invoked from network); 1 Nov 2004 14:40:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Nov 2004 14:40:51 -0000 Received: (qmail 65610 invoked by uid 500); 1 Nov 2004 14:40:47 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 65476 invoked by uid 500); 1 Nov 2004 14:40:45 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 65462 invoked by uid 99); 1 Nov 2004 14:40:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [146.122.132.195] (HELO sdrc.com) (146.122.132.195) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 01 Nov 2004 06:40:43 -0800 Received: from tyr.sdrc.com (mailhub-cvg.sdrc.com [146.122.142.31]) by sdrc.com (8.9.1/8.9.1) with ESMTP id JAA02264 for ; Mon, 1 Nov 2004 09:40:39 -0500 (EST) Received: from [146.122.200.34] (linux.net.plm.eds.com [146.122.200.34]) by tyr.sdrc.com (8.8.6 (PHNE_17190)/8.8.5) with ESMTP id JAA23525 for ; Mon, 1 Nov 2004 09:40:10 -0500 (EST) Message-ID: <4186574A.5090201@binary-designs.net> Date: Mon, 01 Nov 2004 10:33:30 -0500 From: "Scott T. Weaver" User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jetspeed Developers List Subject: Re: wrappered collection with list References: <4182D2E2.9090303@bluesunrise.com> In-Reply-To: <4182D2E2.9090303@bluesunrise.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sounds good to me. David Sean Taylor wrote: > Looking at the registry component we are doubling the number of > objects returned per query: > > public List getPortletApplications() > { > Criteria c = new Criteria(); > List list = new > ArrayList(getPersistenceBrokerTemplate().getCollectionByQuery( > > QueryFactory.newQuery(PortletApplicationDefinitionImpl.class, c))); > postLoadColl(list); > return list; > } > > any objections to returning a collection instead of list? > seems like OJB always returns Collections and not Lists > -- "Great minds discuss ideas. Average minds discuss events. Small minds discuss people." - Admiral Hyman Rickover ******************************************* * Scott T. Weaver * * * * * * -------------------------------------- * * Apache Jetspeed Enterprise Portal * * Apache Pluto Portlet Container * * * * OpenEdit, Website Content Management * * * ******************************************* --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org