Re: What databases have taught me

From: Aloha Kakuikanu <aloha.kakuikanu_at_yahoo.com>
Date: 28 Jun 2006 08:47:22 -0700
Message-ID: <1151509642.239161.229580_at_d56g2000cwd.googlegroups.com>


Robert Martin wrote:
> On 2006-06-23 11:10:25 -0700, "Aloha Kakuikanu"
> <aloha.kakuikanu_at_yahoo.com> said:
> > Order.cancel()? This is really about canceling a transaction. You have
> > to study transaction management in order to implement this
> > functionality correctly. Inheritance and polymorphish doesn't help
> > here, sorry.
>
> Again, this depends. If there are several different types of customer
> (e.g. GovernmentContractor, privateContractor, foreignContractor) you
> might find that each of these different types must follow a different
> procedure in order to cancel an order.

To cancel a transaction you have to rollback or compensate all the actions -- as simple as that. Objects/classes are irrelevant. Received on Wed Jun 28 2006 - 17:47:22 CEST

Original text of this message