Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Single record sets, collections and proxies  (Read 4846 times)
dyoo
Newbie
*
Posts: 3


View Profile Email
« 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
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print