Joe, on your web site, you have an article named "Be a DAO Disciple".  I
have a question, or two, about your use of the DAO object.

You have four methods:
userBean Create (userBean)
userBean Read (id)
userBean Update (userBean)
void Delete (userBean)

I noticed that the Read() method takes an ID number, while the rest of
the methods require a userBean object.

QUESTIONS AS FOLLOWS:
Can you explain why you went with this approach?

Why didn't you pass a userBean as an argument for all methods?

Why didn't you pass a userBean only to Create() and Update() while
passing an ID number to Read() and Delete()?

Why do you return a userBean object from the Update() method?  Would
that not be redundant since you already have the same userBean that was
used to pass to the Update() method?  I don't see any reason to change
the userBean in the Update() method.  Are there any reasons to do so?

Thanks
M!ke
----------------------------------------------------------
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]

Reply via email to