If you don't want to use Reactor for ColdFusion, you are talking about a
service locator if you are thinking of combining gateways and dao
functionality into a single CFC.  This is great if you want to roll your own
service.  Since they are all the same, you could also think of creationg a
DAO factory to retrieve your bean objects.  Te gateways can be grouped
together since most of the time they can be ad hoc and unrelated.

Teddy

On 11/18/06, Andrew Duckett <[EMAIL PROTECTED]> wrote:

Andrew Duckett wrote:
>
> This is more of a design question than a ModelGlue specific question.
> I'm working on an application where I have multiple tables (4 to be
> exact) that are identical: type, status, severity, priority.  They all
> contain the same columns.  I'm trying to decide if it would be more
> beneficial for me to create separate bean, DAO and Gateway objects for
> each of these or if I should just create a single bean, DAO and
> Gateway to handle them all.  The only difference would be which table
> the dao and gateway would be using.  I realize this isn't a huge deal,
> and either would get the job done.  This is more of a pet project I am
> working on to help me better understand design patterns.  Do any of
> you have any suggestions or pros/cons about either approach?
>
> Thanks!
> Andrew
>
>
>
> You are subscribed to cfcdev. To unsubscribe, please follow the
> instructions at http://www.cfczone.org/listserv.cfm
>
> CFCDev is supported by:
> Katapult Media, Inc.
> We are cool code geeks looking for fun projects to rock!
> www.katapultmedia.com
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
Oops, forgot to take the ModelGlue part out, sorry about that.



You are subscribed to cfcdev. To unsubscribe, please follow the
instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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




--
<cf_payne />
Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to