[Opensource] Cascading Deletes

Malcolm Wise malcolm.wise at sde.eu.sony.com
Mon Dec 9 07:38:15 PST 2002


Hi,

I have a DBObject for which I've overridden the checkAllReferredToBy()
method to trap any deletes of rows with foreign key references and return a
meaningful message to the user.  This DBObject itself has a 'parent'
DBObject, and I've set up the relationship using addDetail().  When I
attempt to delete a 'parent' row I was expecting each detail's
checkAllReferredToBy() method to be called, but I notice that when doing
cascading deletes the deleteAll() method is used which bypasses this check.
Am I missing something obvious?
I'm using Expresso 5.01.

Cheers

Malcolm Wise
Technology Manager
Sony Semiconductor & Electronic Solutions
Tel. +44(0)1256 388864
http://www.semiconductor.sony-europe.com



*************************************************************************
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*************************************************************************



More information about the Opensource mailing list