I tend to have a validation method (or more often, several validation methods) which i can call when inserting, updating, etc.

Often, I create a base class with all my generic validation methods, which my other classes then inherit from.

At 09:50 AM 10/3/2003 -0400, you wrote:

Where is the best place to handle data validation in an object? Should an
object's Save() method be responsible for validating it's internal members
before actually saving or should the calling program call a Validate()
method before attempting to save?

Any advice is appreciated.

Thanks,
Phillip

--

Phillip Cave
Director, ColdFusion Development
Macromedia Certified ColdFusion Developer
Carol/Trevelyan Strategy Group
202.448.5212

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word '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]

Jeff Tapper [EMAIL PROTECTED] Radio Free Astoria http://radio.tapper.net ========== "They who would give up an essential liberty for temporary security, deserve neither liberty or security" - Ben Franklin


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word '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