Do you have a Dealer object that corresponds to your DealerTO object? In that case, you may want to update that key in the Dealer object, and then grab a new DealerTO from the updated Dealer object. That way, you can keep any business rules associated with that specific update encapsulated within the Dealer business object.
On Thu, 6 Jan 2005 11:27:37 -0800, Ali Awan <[EMAIL PROTECTED]> wrote: > > > > Ummm, I don't have setters for my TO. > > I just have a constructor, which initializes the TO, and I pass it all the > arguments necessary. > > Thanks, > > Ali > > Here's the code for my TO: > > <cfcomponent access="public" displayname="DealerTO" hint="Transfer Object"> > > <cffunction name="init" access="public" returntype="dealerTO" > output="false" displayname="DealerTO Constructor" hint="I initialize the > TO"> > > <cfargument name="KioskKey" type="numeric" required="false" default="0" > displayname="" hint="" /> > > <cfargument name="DealerName" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="DealerID" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="ContactName" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="ContactTelephone" type="string" required="false" > default="" displayname="" hint="" /> > > <cfargument name="FAXTelephone" type="string" required="false" > default="" displayname="" hint="" /> > > <cfargument name="emailaddress" type="string" required="false" > default="" displayname="" hint="" /> > > <cfargument name="DealerAddress" type="string" required="false" > default="" displayname="" hint="" /> > > <cfargument name="DealerCity" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="DealerState" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="DealerZip" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="DealerDeductable" type="string" required="false" > default="" displayname="" hint="" /> > > <cfargument name="Uninsured" type="string" required="false" default="" > displayname="" hint="" /> > > <cfargument name="errors" type="struct" required="false" > default="#structNew()#" /> > > <cfset this.KioskKey = arguments.KioskKey /> > > <cfset this.DealerName = arguments.DealerName /> > > <cfset this.DealerID = arguments.DealerID /> > > <cfset this.ContactName = arguments.ContactName /> > > <cfset this.ContactTelephone = arguments.ContactTelephone /> > > <cfset this.FAXTelephone = arguments.FAXTelephone /> > > <cfset this.emailaddress = arguments.emailaddress /> > > <cfset this.DealerAddress = arguments.DealerAddress /> > > <cfset this.DealerCity = arguments.DealerCity /> > > <cfset this.DealerState = arguments.DealerState /> > > <cfset this.DealerZip = arguments.DealerZip /> > > <cfset this.DealerDeductable = arguments.DealerDeductable /> > > <cfset this.Uninsured = arguments.Uninsured /> > > <cfset this.errors = arguments.errors /> > > <cfreturn this /> > > </cffunction> > > </cfcomponent> > > </cfcomponent> > > Nando > Thu, 06 Jan 2005 10:01:02 -0800 > > > > Don't know about proper convention, but what about simply using the existing > setter for that key? No extra code is needed. > > ---------------------------------------------------------- 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]
