|
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 ---- |
- RE: [CFCDev] Transfer Objects Mehdi, Agha
- RE: [CFCDev] Transfer Objects Ali Awan
- Re: [CFCDev] Transfer Objects Doug Keen
- Re: [CFCDev] Transfer Objects Sean Corfield
- RE: [CFCDev] Transfer Objects Dawson, Michael
- Re: [CFCDev] Transfer Objects Barney Boisvert
- Re: [CFCDev] Transfer Objects Marcantonio Silva
- Re: [CFCDev] Transfer Objects Barney Boisvert
- Re: [CFCDev] Transfer Objects Patrick Branley
- Re: [CFCDev] Transfer Objects Barney Boisvert
- Re: [CFCDev] Transfer Objects Sean Corfield
