PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: dyoo on November 20, 2007, 12:50:40



Title: Single record sets, collections and proxies
Post by: dyoo on November 20, 2007, 12:50:40
Hi,

When working with a data set, I often need to return either a single instance (i.e. emplid = 0) or multiple instances (i.e. emplid > 500).

It seems that proxies should either hold an object or an object collection but not both.

What would be the best structure to represent this? Should I have an ObjectVO, ObjectProxy and then an ObjectCollectionProxy that calls back to ObjectProxy?

Thanks,

Danny


Title: Re: Single record sets, collections and proxies
Post by: puremvc on November 20, 2007, 01:26:34
There is likely no need to have the ObjectProxy if ObjectCollectionProxy offers methods for retrieving a given ObjectVO from the collection.

-=Cliff>