Look at Mach-II if you want to see a best-practice approach for what you are 
talking about. You don't have to take the full OO approach that Mach-II uses, 
but the overall idea that you separate your data access layer into objects 
(CFCs in this case) is part of the Mach-II framework and other OO programming 
models.

I've just been playing with Mach-II lately, others on the list who are closer 
to the framework or are otherwise experienced OO programmers may have more 
detail to share with you.


> Hi, I have determined I have some database schema issues necessitating 
> rewriting the data access code.  Currently I use cfquery with a couple 
> stored procedures.  Since the new database structure will require I 
> change these queries, I am contemplating the idea of creating cfc's 
> which contain stored procedures to handle the data access for the site.  
> I am not the uber programmer to be sure, and to me the idea seems cool, 
> but am unsure of the real benefits in terms of reuse, speed, etc.  I 
> was wondering if anyone had experience moving their data access into 
> cfcs using stored procedures, and what their experience was like, what 
> their motivations were, and how they feel about having done it now.  
> Was it a good idea, and would they do it again?  Any comments greatly 
> appreciated.
 
> 
> Thanks,
> 
> John

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189672
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to