portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject wrappered collection with list
Date Fri, 29 Oct 2004 23:31:46 GMT
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

-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773 4646
[mobile] +01 707 529 9194


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message