CRUD is simply an acronym for Create, Read, Update, Delete.  These functions
(methods) are typically found in a DAO (Data Access Object).  These four
methods deal with a single record in a datasource.  Some will tell you that
no "multiple record methods" should be placed in a DAO, while others will
tell you that it's perfectly fine to do so.  Having both single- and multi-
record methods in your DAO is often referred to as a Table Data Gateway (
http://martinfowler.com/eaaCatalog/tableDataGateway.html).

Martin Fowler defines a Table Data Gateway as:

"*An object that acts as a Gateway (466) to a database table. One
instance handles
all the rows in the table."

*(Emphasis mine)

I personally subscribe to the Table Data Gateway pattern, as it makes zero
sense to me to have a separate DAO (for CRUDs) and Gateway (for mult-record
selects).

Hope that helps.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to