Inheritance in Table Moduel pattern

H

headware

In his book "Patterns of Enterprise Application Architecture", Martin
Fowler says that using the Table Module pattern to model the domain
logic precludes the use of inheritance and GoF style OO design
patterns. I'm in the midst of helping to write my first 3-tiered
architecture using the Table Module pattern and am having trouble
understanding why that would be the case.

In the example he gives of the Domain Model pattern (the fully object
oriented business layer), he uses the GoF Strategy pattern to
calculate payment plans for the purchasing of different types of
software. The word processor software uses one Strategy and the
spreadsheet software uses another. Why couldn't I use that with the
Table Module pattern? Am I missing something? Table Module just uses
classes as wrapper around DataSets right? Why would that prevent you
from using inheritance and design patterns? Is this just not a good
example of the shortcomings of Table Module?

Thanks,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top