On Saturday, August 3, 2002, at 04:16 , Matt Liotta wrote:
> The make them separate CFCs. Have one CFC that does the query and
> assigns the result to the session scope or whatever scope. Have another
> CFC the retrieves the query from the appropriate scope based on context.

I think I'd have the role-based management CFC know about the scope and 
use the basic DAO CFC.

I think what you need is a base DAO *manager* CFC which you extend, 
instead of extending the DAO itself.

        DAO - existing component
        DAOManager - role-based way of managing DAO (a facade of sorts)
        DAOManagerSession - extends DAOManager, interacts with session scope
        Client - uses what it thinks is a DAOManager (but the actual instance 
is determined by whoever creates the specific instance)

Make sense?

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to