Ali,
 
One way of doing it is that you have a TO with all the properties as private and use getters/setters to manipulate the TO parameters. I would still use init to initialize all my variables with default values.
 
What I normally do is that I have public variables in my TOs and I set all the defaults when I init the object and just access the object's vars directly to manipulate them because I need to use same objects for CF and Flex/Flash
 
Hope that helps
 
-- Agha


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ali Awan
Sent: Thursday, January 06, 2005 9:42 AM
To: [email protected]
Subject: [CFCDev] Transfer Objects

Hi all,

 

I'm new to this list and I'm building my first app with CFC's.

Basically I'm trying to have all my business logic and the data access layer in CFC's.

 

Anyway, my question refers to Transfer Objects.

 

I have a DAO cfc, which does the reads/inserts/updates to the database.  I also have a Transfer Object CFC to which my application submits all data to be updated and then passes this on to the DAO.  However my Transfer Object only has an init function which initializes the TO with whatever data is passed in.

 

My question is, is it possible to have an update function in the TO?  If so, how would that be coded?

I just want to be able to update a single key in the TO, without sending all of the data everytime and re-initializing it.

 

Thanks,

Ali

----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com


Reply via email to