| I think best practices may be a bit hard to define in this area. I think you're right on with your explanation of wrapping the implementation of persistence in a service layer, like a facade for the DAO and possibly Gateway objects. I'm not too sure why you would add another facade in the form of a Gateway object that simply forwards method invocations off to the DAO, so I would say either separate list type methods into a Gateway, or use a combined DAO. Personally I like to split the data access tier into DAOs and Gateways when writing ColdFusion, but for some reason, and I have no honest explanation for this, when writing Java, I have fallen into writing one DAO per domain object that handles both CRUD methods and list methods. I think that may have spawned from wanting to look at a single interface for each domain object in uml. -Chris On Feb 27, 2006, at 4:17 PM, Peter Bell wrote:
|
- [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]
