[Cosmo-dev] Re: [commits-cosmo] (rletness) [4074] * Add ContentService.initializeItems() to ensure all data in an item is initialized during

Randy Letness randy at osafoundation.org
Tue Apr 10 11:07:53 PDT 2007


Brian Moseley wrote:
> hm. i was thinking more like this:
>
> public Set loadChildren(Collection);
> public Set loadChildren(Collection, Date);
>
> these methods would guarantee immediate loading of all associations,
> whereas traversing the associations directly would allow lazy loading.
> the former would return all child items, and the latter would return
> only those that had changed since the given date.
>
> thoughts?

I can do that too.  Seems more logical.  Plus we can optimize the second 
method by using a query instead of traversing each child.

-Randy


More information about the cosmo-dev mailing list