public void setCascadingDelete(Class target, boolean doCascade)
    {
        ClassDescriptor cld = getBroker().getClassDescriptor(target);
        List extents = cld.getExtentClasses();
        Boolean result = doCascade ? Boolean.TRUE : Boolean.FALSE;
        setCascadingDelete(cld, result);
        if(extents != null && extents.size() > 0)
        {
            for(int i = 0; i < extents.size(); i++)
            {
                Class extent =  (Class) extents.get(i);
                ClassDescriptor tmp = getBroker().getClassDescriptor(extent);
                setCascadingDelete(tmp, result);
            }
        }
    }
public void setCascadingDelete ( Class target , boolean doCascade ) { ClassDescriptor cld = getBroker ( ) . getClassDescriptor ( target ) ; List extents = cld . getExtentClasses ( ) ; Boolean result = doCascade ? Boolean . TRUE : Boolean . FALSE ; setCascadingDelete ( cld , result ) ; if ( extents != null && extents . size ( ) > 0 ) { for ( int i = 0 ; i < extents . size ( ) ; i ++ ) { Class extent = ( Class ) extents . get ( i ) ; ClassDescriptor tmp = getBroker ( ) . getClassDescriptor ( extent ) ; setCascadingDelete ( tmp , result ) ; } } }
Allows to change the <em>cascading delete</em> behavior of all references of the
specified class while this transaction is in use - if the specified class is an
interface, abstract class or class with "extent" classes the cascading flag will
be propagated.

@param target The class to change cascading delete behavior of all references.
@param doCascade If <em>true</em> cascading delete is enabled, <em>false</em> disabled.