I've been looking at a few articles about the memento pattern ... i get the
brake drum analogy, like i get so many other analogies that are used to
explain OO ... but it would be really nice to have an CFC example to build
off of. Anyone who feels they understand this care to give an example?



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Sean A Corfield
> Sent: Thursday, September 11, 2003 10:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [CFCDev] DB and OO question
>
>
> On Thursday, Sep 11, 2003, at 13:04 US/Pacific, Justin Balog wrote:
> > Quick question on this one as well, what if you want to expose one of
> > the
> > data elements when the object gets broken down and saved into the db,
> > how
> > would you reference that data unless you have a getX() method?  An
> > example
> > of this would be a personObj, is composed of an address object.  The
> > personObj gets passed to a personPersistor (which is a cfc that breaks
> > the
> > object apart, and saves its elements to a dB.  And for some reason the
> > addressFK was stored in the person table...just an example for this
> > point.
> > You would need the getID in the addressObj in order to get at the PK
> > to save
> > in the person table?  Does that make sense?
>
> Look up the Memento design pattern - that's designed for situations
> like persistence.
>
> Sean A Corfield -- http://www.corfield.org/blog/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> ----------------------------------------------------------
> 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]
>

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