On 12/27/05, Jason Daiger <[EMAIL PROTECTED]> wrote:
> After a ton of reading and experimenting w/ these 2 patterns. Is there a
> reason folks seem to prefer the TDG pattern as M. Fowler describes,
> http://martinfowler.com/eaaCatalog/tableDataGateway.html,
> over the DAO pattern described in the J2EE Design Patterns,
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html?

I general have DAO classes that deal with a single business object /
bean and data gateways that deal with multiple results, returning
query objects. That way you have the simple rules that DAO = one
object, gateway = multiple results (not objects).

As always, there are few hard and fast rules and patterns are mostly
idealized templates for ways to solve common problems.
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to