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.

Reply via email to