|
Peter, This is the same internal debate I had about 4 months ago. I had been reading the Core J2EE Design Patterns book, had just attended the Fusebox/Frameworks conference and was looking at other online discussions as well. I decided to follow the J2EE Design approach and put all my persistant methods into the DAO object and forgo the Gateway. In the end it's a matter of preference and how much separation you desire in your application. I choose the DAO option b/c I wanted all my SQL calls in 1 spot. I just recently reaped the rewards of this decision. I was working w/ MS SQL had several DAO's against it, then ported a portion of the application to MS Access and then ported the MS Access to MySQL. Why the hop skip and jump b/w db's is another story but the moral is, I only had to change a few lines of code w/in my DAO objects and everything worked as expected. In the end I just prefer all my SQL in 1 file instead of 2 which is why no Gateway. -Jason Peter Bell wrote:
-- Jason Daiger URL: www.jdaiger.com EML: [EMAIL PROTECTED] ---------------------------------------------------------- |
- [CFCDev] DAO vs. Gateway? Peter Bell
- Re: [CFCDev] DAO vs. Gateway? Chris Scott
- Re: [CFCDev] DAO vs. Gateway? Jason Daiger
- RE: [CFCDev] DAO vs. Gateway? Peter Bell
- Re: [CFCDev] DAO vs. Gatewa... Kurt Wiersma
- Re: [CFCDev] DAO vs. Ga... Peter J. Farrell
- Re: [CFCDev] DAO v... Jason Daiger
- RE: [CFCDev] DAO vs. Gateway? Gurevich, Gerry \(NIH/NIEHS\) [C]
- RE: [CFCDev] DAO vs. Gateway? Gurevich, Gerry \(NIH/NIEHS\) [C]
