Title: Message
My take would be to have createPage() and deletePage() methods in your PageManager object (since it's the interface to manage your pages), but that object just turns around and calls createPage() and deletePage() on an instance of PageDao that is composited within the PageManager.  I'm relatively new to this though, so I'd wait to hear what Sean and some of the others have to say.
 
Thanks,
 
Brian
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harry Klein
Sent: Wednesday, January 07, 2004 11:06 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] BO, Manager and file operations

I have a question, regarding the positioning of two methods
 
Example: page object
 
CFC:
    page.cfc
    pagedao.cfc
    pagegateway.cfc
    pagemanager.cfc
 
Where should i include the methods createPage() and deletePage()?
createPage() should execute the dao create() Method and create a phyical file in the filesystem.
deletePage() should execute the dao delete() Method and delete this file.
 
The BO page.cfc doesn't seem to be the right place. Should i add this methods to the pagemanager or create another separate cfc?
The pagemanager manages the dao and gateway, i think this is also not the right place for this methods.
 
--
 
Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH
Oettingenstr. 25 | 80538 M�nchen
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69-78
mailto:[EMAIL PROTECTED] | http://www.contens.de

Reply via email to