I'm not sure exactly what the question is, but in a brief glance of the code
it appears that you have the general concepts correct.  My concern is this
bit:

admin.cfc <--- getters and setters, right?

I don't know what admin.cfc is, but based upon the context I am assuming it
is intended to be an object of some sort.  While an object does indeed have
getters and setters on it (to get at and set its properties), if that is the
only thing that it has on it, then it is nothing more than a glorified
structure.  That is, it really isn't an object at all.  An object should
**do** something.  Or many things, if need be.

Bad User.cfc
   getUserName()
   setUserName()
   getEmail()
   setEmail()

Good User.cfc
    register()
    hasPermission()
    changePassword()
    sendTempPassword()
    findLastLogin()
    getUserName()
    setUserName()
    getEmail()
    setEmail()

So then, if your object actually does something (i.e. serves a purpose),
then that is the benefit of having an object rather than just passing the
raw data into your gateway/query.  Does that make sense?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325454
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to