On Thu, 15 Jul 2004 23:02:26 -0400, Joe Eugene <[EMAIL PROTECTED]> wrote: > Is PersonDAO just a dumb object just to handle DB Transactions?
Define "dumb"... Transactions are business logic and belong outside the DB layer (so in a PersonManager for example). > Whether you need to create() Or update() logic is handled in Person? No, a PersonManager or some other scenario that knows it needs to persist / restore a person object (how can the Person object itself know in general?). > What would PersonDAO return to handle failures? True/false? Throwing an exception is probably the best action. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
