* @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.
*/
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);
}
}
}