RE: DAOs, objects, structs, or strings

2005-10-11 Thread Matthew Small
I use 3 because then the DAO shouldn't have knowledge of the Widget object. Matthew Small Web Developer American City Business Journals 704-973-1045 [EMAIL PROTECTED] -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 2:46 PM To: CF-Talk Subject:

Re: DAOs, objects, structs, or strings

2005-10-11 Thread Tanguy Rademakers
I use 3 because then the DAO shouldn't have knowledge of the Widget object. It's a WidgetDAO - it exists to load and persist Widgets. By your logic, your WidgetDAO shouldn't return Widgets either, just a struct (or maybe even a query) of a given widget's information...

RE: DAOs, objects, structs, or strings

2005-10-11 Thread Matthew Small
[mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 3:06 PM To: CF-Talk Subject: Re: DAOs, objects, structs, or strings I use 3 because then the DAO shouldn't have knowledge of the Widget object. It's a WidgetDAO - it exists to load and persist Widgets. By your logic, your WidgetDAO shouldn't

Re: DAOs, objects, structs, or strings

2005-10-11 Thread Tanguy Rademakers
Sorry, maybe our terms are different? My Data Access Object (DAO) that works with the DB returns only a query object. My DataGateway (DG) creates the object from the query and returns it, or passes it to the DAO in primitives. Then I have the Data Object itself. Three parts to this equation for

RE: DAOs, objects, structs, or strings

2005-10-11 Thread Matthew Small
: Tuesday, October 11, 2005 3:18 PM To: CF-Talk Subject: Re: DAOs, objects, structs, or strings Sorry, maybe our terms are different? My Data Access Object (DAO) that works with the DB returns only a query object. My DataGateway (DG) creates the object from the query and returns it, or passes

Re: DAOs, objects, structs, or strings

2005-10-11 Thread Douglas Knudsen
neat list of things from cfcdev list http://www.mail-archive.com/cfcdev@cfczone.org/msg11316.html DK On 10/11/05, Paul [EMAIL PROTECTED] wrote: I'm curious about the best way to pass data to and from DAO CFCs. If I am updating a Widget, I have seen three ways to pass its data to