http://www.martinfowler.com/eaaCatalog/gateway.html

That link points to the origional definition of a gateway pattern as
described by Martin Fowler.


However, my understanding of gateways, as most often discussed on this
list, are CFCs that deal with more than one DB ROW at a time.

For instance if you need to get an entire set of attendance for all
students in a class that query would be found in the students Gateway
(studentsGW.cfc) where as if you just needed to get information
aboutone student it would be in the student data access object (DAO)
studentDAO.cfc


Now you'll notice that I named both of those objects with the GW and
DAO which some people agree with and some people don't.  Normally, I
wouldn't name an object after a design pattern but I think those that
deal with data sources are a little special (and factories) so they
get the pattern name in the object name. (though honestly GW is just
me being too lazy to type Gateway)


Bill


On 7/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> What are gateway CFCs?  What's their purpose?  What goes into a gateway CFC?
>  Is there a best way to construct them? 
> 
>   
> 
> Thanks - Tom
> ----------------------------------------------------------
> 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] 


-- 
[EMAIL PROTECTED]
http://blog.rawlinson.us

If you want Gmail - just ask.


----------------------------------------------------------
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]


Reply via email to