com.webobjects.eocontrol
Interface EOClassDescription.ClassDelegate
- Enclosing interface:
 - EOClassDescription
 
- public static interface EOClassDescription.ClassDelegate
 
The ClassDelegate interface defines a method that
 the EOClassDescription class can invoke in its delegate. Delegates
 are not required to provide an implementation for the method, and
 the implements keyword does not have to be used to specify that the
 object implements the ClassDelegate interface. The method
 does need to be declared and implemented if it is needed. The
 EOClassDescription method setClassDelegate method is used to assign
 the object as the class delegate. EOClassDescription
 only attempts to invoke the method if it's actually implemented.
- See Also:
 EOClassDescription.setClassDelegate(Object delegate)
 
shouldPropagateDeleteForObject
public boolean shouldPropagateDeleteForObject(EOEnterpriseObject object,
                                              EOEditingContext ec,
                                              String key)
- Invoked from 
propagateDeleteForObject. If the class delegate returns
 false, it prevents object in ec from propagating
 deletion to the objects at the destination of key.
 This method should be used with caution since however, returning false
 and not propagating deletion can lead to dangling references in the
 object graph.
- Parameters:
 object - object in anEditingContextec - an editing contextkey - deletion of objects at this destination is prevented
- Returns:
 false- See Also:
 EOClassDescription.propagateDeleteForObject(EOEnterpriseObject object,
                EOEditingContext anEditingContext)
 
 
Copyright © 2003 Apple Computer, Inc.