I use the abstract factory pattern with DAO's to support multiple databases, i.e dao_mssql.cfc, doa_mysqly.cfc, dao_oracle.cfc, etc. I don't see why you couldn't implement a dao_filesystem.cfc that woud use cffile/cfdirectory to persist data to the file system.
-Phil On Tue, 9 Nov 2004 12:02:16 -0600, Joe Ferraro <[EMAIL PROTECTED]> wrote: > > > > I was reading in Core J2EE Patterns that a DAO's methods be used for > returning external persistent data to the client is not just exclusive to > RDBMS. This makes sense, but I was wondering if a DAO should be used for > accessing things like a directory structure with cfdirectory. Also could it > be used with a tag such as cffile considering that maybe you are writing a > file in one instance of a create method but you may need to abstract that > create method so that the data would be passed into database in another > implementation. Does this make any sense? Should I be handling this in a > different type of cfc and or is there another pattern I should look into? > > > > What are your thoughts? > > > > Joe Ferraro > > Web Application Developer > > Ken Cook Co. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at [EMAIL PROTECTED]
