@Ben, Sorry - I should have been clearer. I was using the concept of a VO quite loosely as a method of transporting values without including executable code and was using it to distinguish some kind of pure data interchange (VO, Query, Struct, etc.) from a BO with (potentially) custom getters. You are absolutely right that actually using cfc VO's is neither necessary nor (for large recordsets) performant.
I haven't done much with Flex yet, but I'm looking to used the "typed structs" solution for performantly passing data to flex. In simple terms I believe it's a naming convention for the structs that if you follow, Flex will treat it as if you'd sent over an array of VOs and will create typed AS classes to work with. Best Wishes, Peter On Jul 17, 2008, at 9:57 AM, Porter, Benjamin L. wrote: > > Peter you do not NEED to create value objects to send coldfusion > code to > Flex. It may be desirable in situations but Flex is perfectly happy > turning your query record set into an ArrayCollection of generic > objects. It will also convert arrays and structures into the > appropriate > generic object.Y ou could create a factory method on an object to > consume and convert into a typed object on the Flex side. With large > arrays of objects that is sometimes a more performant solution. > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf > Of Peter Bell > Sent: Thursday, July 17, 2008 7:48 AM > To: [email protected] > Subject: [CFCDEV] Re: Iterators / IBO's > > > [snip] > > A few comments: > Firstly, sometimes you HAVE to create VO's - such as if you're sending > them over the wire to a Flex app as you can't send cf code over the > wire > Secondly it solves the performance problem of one bean per record > which can be nice > [SNIP] > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
