Re: Clean Object Class Design -- What is it?
Date: Fri, 31 Aug 2001 17:39:24 -0400
Message-ID: <YtTj7.600$Hl.123494514_at_radon.golden.net>
Craig Shearer wrote in message <3b8e9bff$1_at_clear.net.nz>...
>
>"Sascha Bohnenkamp" <bonito_at_mevis.de> wrote in message
>news:3B8E1FC3.D4F6EED7_at_mevis.de...
>> > And
>> > for bi-directional associations, it enforces referential integrity.
>> which OODBMS does this and what is the kind of 'enforcement'?
>> Is it only a setting of the bi-link to NULL or more?
>> (rdbms forbid those actions or do a delete on cascade if you want them
>> to)
>
>The ODBMS I use (JADE) does this. You define inverse relationships between
>reference properties (either singular references or collections) on
classes.
>When you define the inverse, you also define whether the relationship is
>parent-child or peer-peer. In the case of a parent-child relationship, if
>the parent object is deleted, then this will cascade delete the child
>object. In the peer-peer case, deleting the object at one side of the
>relationship will automatically update the other object's reference to it
to
>null.
Who says it should even allow the delete in the first place? Are all references symmetric? Received on Fri Aug 31 2001 - 23:39:24 CEST
