net.wotonomy.control
Interface EOEditingContext.Delegate

Enclosing class:
EOEditingContext

public static interface EOEditingContext.Delegate

Used by EditingContext to delegate behavior to another class. Note that EditingContext doesn't require its delegates to implement this interface: rather, this interface defines the methods that EditingContext will attempt to invoke dynamically on its delegate. The delegate may choose to implement only a subset of the methods on the interface.


Method Summary
 void editingContextDidMergeChanges(EOEditingContext anEditingContext)
          Called after the editing context has completed merge operations on one or more objects after receiving an ObjectChangedInStore notification.
 net.wotonomy.foundation.NSArray editingContextShouldFetchObjects(EOEditingContext anEditingContext, EOFetchSpecification fetchSpecification)
          Called by objectsWithFetchSpecification.
 boolean editingContextShouldInvalidateObject(EOEditingContext anEditingContext, java.lang.Object anObject, EOGlobalID aGlobalID)
          Called to determine whether an object should be invalidated.
 boolean editingContextShouldMergeChangesForObject(EOEditingContext anEditingContext, java.lang.Object anObject)
          Called to determine whether the editing context should attempt to merge changes in the specified object that the parent store says has changed via an ObjectChangedInStore notification.
 boolean editingContextShouldPresentException(EOEditingContext anEditingContext, java.lang.Throwable exception)
          Returns whether the editing context should ask its message handler to display a message.
 boolean editingContextShouldUndoUserActionsAfterFailure(EOEditingContext anEditingContext)
          Returns whether the editing context should undo the most recent set of changes that resulted in a validation failure.
 boolean editingContextShouldValidateChanges(EOEditingContext anEditingContext)
          Returns whether the editing context should validate the most recent set of changes.
 void editingContextWillSaveChanges(EOEditingContext anEditingContext)
          Called before the editing context saves its changes to the parent object store.
 

Method Detail

editingContextDidMergeChanges

void editingContextDidMergeChanges(EOEditingContext anEditingContext)
Called after the editing context has completed merge operations on one or more objects after receiving an ObjectChangedInStore notification.


editingContextShouldFetchObjects

net.wotonomy.foundation.NSArray editingContextShouldFetchObjects(EOEditingContext anEditingContext,
                                                                 EOFetchSpecification fetchSpecification)
Called by objectsWithFetchSpecification. If null, the editing context will pass the fetch specification on to its parent store, as normal. Otherwise, the context will use the returned array to service the request.


editingContextShouldInvalidateObject

boolean editingContextShouldInvalidateObject(EOEditingContext anEditingContext,
                                             java.lang.Object anObject,
                                             EOGlobalID aGlobalID)
Called to determine whether an object should be invalidated. Return false to prevent the object from being invalidated. Default is true.


editingContextShouldMergeChangesForObject

boolean editingContextShouldMergeChangesForObject(EOEditingContext anEditingContext,
                                                  java.lang.Object anObject)
Called to determine whether the editing context should attempt to merge changes in the specified object that the parent store says has changed via an ObjectChangedInStore notification. Default is true. Return false if you wish to handle the merge yourself, by extracting the values in the object now and comparing them to the values when editingContextDidMergeChanges is called.


editingContextShouldPresentException

boolean editingContextShouldPresentException(EOEditingContext anEditingContext,
                                             java.lang.Throwable exception)
Returns whether the editing context should ask its message handler to display a message. Return false if the delegate will display the error. Default is true.


editingContextShouldUndoUserActionsAfterFailure

boolean editingContextShouldUndoUserActionsAfterFailure(EOEditingContext anEditingContext)
Returns whether the editing context should undo the most recent set of changes that resulted in a validation failure. Default is true.


editingContextShouldValidateChanges

boolean editingContextShouldValidateChanges(EOEditingContext anEditingContext)
Returns whether the editing context should validate the most recent set of changes. Default is true.


editingContextWillSaveChanges

void editingContextWillSaveChanges(EOEditingContext anEditingContext)
Called before the editing context saves its changes to the parent object store.



Copyright © 2006 null. All Rights Reserved.