To pick a nit, I think a better definition comes from the other direction. DAO's implement persistence operations for single entities, while gateways provide access to recordsets. It's not uncommon at all to have a gateway method that is designed to return a single row (getUserById, for example), but the distinguishing factor is that you're getting a recordset, not a bean or TO. It's also not uncommon for a DAO to deal with multiple records in multiple tables; the distinguishing factor is that it's doing a single persistance operation for a single business entity.
cheers, barneyb On 8/23/05, Nando <[EMAIL PROTECTED]> wrote: > From the general tone of your question, it sounds like you have a bit of > studying to do. Maybe a more specific question would also help those of us > on the list that might be able to answer. Generally speaking, DAO stands for > Data Access Object, and a DAO typically functions to store and retrieve > single records from a database (or datastore). A Gateway usually works to > fetch multiple records from a datastore. > > Suggestion > Go to: http://clearsoftware.net/client/index.cfm > open the search box and type in DAO. Scroll down to the bottom of the > results and read Joe's articles on DAO's. Excellent. > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ---------------------------------------------------------- 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
