Dave Merrill wrote:
Thanks for all the feedback everyone. It seems my instincts aren't in the
mainstream here (:-).
Couple questions:
- Do other data access methods that don't return actual data (save and
update) typically return anything?
Usually, my create() methods return the last_insert_id() of the insert.
Update() is usually void.
- It was questioned whether delete belonged in a DAO at all, since it acts
on multiple rows. Nothing further came of that part of the conversation. Any
comments?
Multi-row deletes belong in your gateway pattern.
Along those same lines, where would you put a multi-row update?
Again, in your gateway. Typically, DAOs manipulate single rows and
gateway manipulate multi-row.
--
Peter J. Farrell :: Maestro Publishing
blog :: http://blog.maestropublishing.com
email :: [EMAIL PROTECTED]
Create boilerplate beans!
Check out the Mach-II Bean Creator - free download.
http://blog.maestropublishing.com/mach-ii_beaner.htm
I've learned that I don't suffer from insanity, I enjoy it.
--
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]