Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOP Design
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00198504
Message ID:
00198525
Views:
20
Hi Markus -

Yes, the Strategy pattern looks like exactly what I need for the Updator object itself. HOWEVER, the problem at this point, is HOW do I structure my Mediator to call the Updator MULTIPLE times.

Here's an example:
Say I need to update VFPTable1.field1 and VFPTable1.field2 AND AccessTable1.afield1. Really this is 3 separate updates. HOW does the Mediator know to call the Updator 3 different times?

Thanks!
~ ellen


>> I'm not sure design-wise what is the best way to generically handle this
>> situation. At this point, my stumbling block is not the fact that there are
>> different types of data that I am dealing with, but the fact that I have to
>> go thru the update process MULTIPLE times. I'm not sure generically how to
>> set this up.
>
>You could apply the strategy pattern here. Your 'Updator' could invoke different strategy objects (that have the same interface) depending on the back end.
>
>Markus
ellen whitney
EPS Software Corp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform