neat list of things from cfcdev list
http://www.mail-archive.com/[email protected]/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
> WidgetDAO.update():
>
>
>
> 1.       create a Widget object, then pass object -
> WidgetDAO.update(WidgetBean).  The update() function then uses
> arguments.WidgetBean.getValue().
>
> 2.       create a Widget object, then pass struct -
> WidgetDAO.update(WidgetBean.getInstance()).  The update() function uses
> arguments.widgetStruct.value.
>
> 3.       pass many string arguments to the update function -
> WidgetDAO.update(widgetID, widgetValue, widgetValue.).  The update()
> function uses arguments["widgetValue"] etc.
>
>
>
> What is typical, and what are the ramifications of the choice?  I am
> inclined towards one of the first two but I just noticed some code from
> someone smarter than I that uses method 3 and wonder if I'm overlooking
> something.
>
>
>
> Thanks,
>
>
>
> paul
>
>
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220756
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to