I've identified a basic "task" object to turn into a CFC. But I was thinking of adding a "getAll()" and a "getAllByType(typeID)" to return collections of "tasks" (really just simple queries). At the moment I really only need the taskID and TaskName in the collections. I'm thinking back to my (now rusty) VB days and collections of objects.
It sounds like you want a TaskGateway.cfc that manages bulk data fetches for Task.cfc type data? And maybe TaskDAO.cfc to provide CRUD methods to handle persistence for a single Task.cfc?
Read the Models section of the Mach II Development Guide which covers this topic and provides full code examples. That part of the dev guide is not Mach II specific - DAO and Gateway are common design patterns for handling persistence and data retrieval:
http://livedocs.macromedia.com/wtg/public/machiidevguide/models.html
Regards, Sean
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
