Ok, that makes sense.  I don't use beans, by those definitions, just
TOs (structs) and BOs.  TOs go out of the application (to the UI and
such), and can only be created by BOs.  BOs are used within the
application (for business logic, passing to DAOs, etc).  I don't know
that it's the best way, but it does seem to be a good way, and works
well for me.

cheers,
barneyb

On 8/26/05, Brian Kotek <[EMAIL PROTECTED]> wrote:
> You may well be right Barney. It is fully possible that my labels
> and/or concepts are out of whack. I'll take a crack at it:
> 
> To me a TO is basically a simple struct, but possibly wrapped up as a
> CFC with public instance data. This would be just for moving data
> around with no other functionality.
> 
> A Business Object represents a real-world entity in the model. This is
> where the real business logic happens, and may involve composition of
> other objects (maybe many), lots of "coding by intention" (meaning
> "sergeant" and "private" methods), and in general doing the work of
> the model.
> 
> A Bean, as I see it, is a sort of intermediary. It is like a TO except
> that it has getters and setters, and very likely (but not always) the
> setters are private so the data can't be changed once the Bean is
> created. It keeps instance data, and it also validates itself (with
> potentially complex validation). But that is all. Any real business
> logic would be performed by a BO, and a Bean would be passed into the
> BO (or the DAO for example) to move the data around.
> 
> So, assuming that made any sense, what do you think? And am I way off
> in my impression of what each of these are? Thanks for your time as
> always.
> 
> Brian
> 
> 
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to