PATH Documentation > WebObjects

Table of Contents

EOClassDescription.ClassDelegate


(informal interface)
Package:
com.webobjects.eocontrol

Interface Description


The EOClassDescription.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 you don't have to use the implements keyword to specify that the object implements the ClassDelegate interface. Instead, declare and implement the method if you need it, and use the EOClassDescription method setClassDelegate method to assign your object as the class delegate. The EOClassDescription class can determine if the delegate doesn't implement the delegate method and only attempts to invoke it if it's actually implemented.



Instance Methods



shouldPropagateDeleteForObject

public abstract boolean shouldPropagateDeleteForObject( EOEnterpriseObject anObject, EOEditingContext anEditingContext, String key)

Invoked from propagateDeleteForObject. If the class delegate returns false, it prevents anObject in anEditingContext from propagating deletion to the objects at the destination of key. This can be useful if you have a large model and a small application that only deals with a subset of the model's entities. In such a case you might want to disable delete propagation to entities that will never be accessed. You should use this method with caution, however-returning false and not propagating deletion can lead to dangling references in your object graph.

© 2001 Apple Computer, Inc. (Last Published April 19, 2001)


Table of Contents