net.wotonomy.control
Class EOEditingContext

java.lang.Object
  extended by net.wotonomy.control.EOObjectStore
      extended by net.wotonomy.control.EOEditingContext
All Implemented Interfaces:
EOObserving
Direct Known Subclasses:
EditingContext

public class EOEditingContext
extends EOObjectStore
implements EOObserving

EOEditingContext provides transactional support for fetching, editing, and committing changes made on a collection of objects to a parent object store.

EOEditingContext is itself a subclass of EOObjectStore, and this means that EOEditingContexts can use other EOEditingContexts as their parent. However, there still must exist an EOObjectStore as the root of the editing hierarchy that can maintain persistent state.

Version:
$Revision: 894 $
Author:
michael@mpowers.net, $Author: cgruber $

Nested Class Summary
static interface EOEditingContext.Delegate
          Used by EditingContext to delegate behavior to another class.
static interface EOEditingContext.Editor
          Editors register themselves with the editing context so that they may receive notification before the context commits changes.
static interface EOEditingContext.MessageHandler
          Used by EditingContext to delegate messaging handling to another class, typically the display group that has the currently active association.
 
Field Summary
static java.lang.String EditingContextDidSaveChangesNotification
          Key for the NSNotification posted after this editing context saves changes.
static int EditingContextFlushChangesRunLoopOrdering
          The default run loop ordering processes recent changes before delayed observers are notified and before dispatching the AWT event queue.
protected static java.lang.String MessageChangeConflict
           
static java.lang.String ObjectsChangedInEditingContextNotification
          Key for the NSNotification posted after this editing context observes changes.
 
Fields inherited from class net.wotonomy.control.EOObjectStore
DeletedKey, InsertedKey, InvalidatedAllObjectsInStoreNotification, InvalidatedKey, ObjectsChangedInStoreNotification, UpdatedKey
 
Constructor Summary
EOEditingContext()
          Default constructor creates a new editing context that uses the default object store.
EOEditingContext(EOObjectStore anObjectStore)
          Creates a new editing context that uses the specified object store as its parent object store.
 
Method Summary
 void addEditor(java.lang.Object anEditor)
          Registers the specified object as an editor for this context.
 net.wotonomy.foundation.NSArray arrayFaultWithSourceGlobalID(EOGlobalID aGlobalID, java.lang.String aRelationshipKey, EOEditingContext aContext)
          Returns a read-only List of objects associated with the object with the specified id for the specified property relationship, or may return a placeholder array that will defer the fetch until needed (aka an array fault).
 net.wotonomy.foundation.NSDictionary committedSnapshotForObject(java.lang.Object anObject)
          Returns a snapshot of the specified object as it existed when it was last read or committed to the parent object store.
 net.wotonomy.foundation.NSDictionary currentEventSnapshotForObject(java.lang.Object anObject)
          Returns a snapshot of the specified object as it existed before the edits triggered by the current event loop were processed.
static double defaultFetchTimestampLag()
           
static EOObjectStore defaultParentObjectStore()
          Returns the default parent object store for all object stores created with the parameterless constructor.
 java.lang.Object delegate()
          Returns the delegate for this editing context, or null if no delegate has been set.
 net.wotonomy.foundation.NSArray deletedObjects()
          Returns a read-only List of all objects marked as deleted in this editing context.
 void deleteObject(java.lang.Object anObject)
          Deletes the specified object from this editing context.
 void editingContextDidForgetObjectWithGlobalID(EOEditingContext aContext, EOGlobalID aGlobalID)
          Called by child editing contexts when they no longer need to track the specified id.
 net.wotonomy.foundation.NSArray editors()
          Returns a read-only List of registered editors of this editing context.
 java.lang.Object faultForGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext)
          Returns the object for the specified id.
 java.lang.Object faultForRawRow(java.util.Map aDictionary, java.lang.String anEntityName)
          Returns a fault representing an object of the specified entity type with values from the specified dictionary.
 java.lang.Object faultForRawRow(java.util.Map aDictionary, java.lang.String anEntityName, EOEditingContext aContext)
          Returns a fault representing an object of the specified entity type with values from the specified dictionary.
 double fetchTimestamp()
          Returns the fetch timestamp for this editing context.
 void flushRecentChanges(java.lang.Object anObject)
          This method is called by the event queue run loop and calls processRecentChanges.
 void forgetObject(java.lang.Object anObject)
          Unregisters the specified object from this editing context, removing all references to it.
 EOGlobalID globalIDForObject(java.lang.Object anObject)
          Returns the id for the specified object, or null if the object is not registered in this context.
 void handleNotification(net.wotonomy.foundation.NSNotification aNotification)
          Handles notifications from parent store, looking for InvalidatedAllObjectsInStoreNotification and ObjectsChangedInStoreNotification.
 boolean hasChanges()
          Returns whether this editing context has changes that have not yet been committed to the parent object store.
 void initializeObject(java.lang.Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext)
          Given a newly instantiated object, this method initializes its properties to values appropriate for the specified id.
 net.wotonomy.foundation.NSArray insertedObjects()
          Returns a read-only List of the objects that have been inserted into this editing context.
 void insertObject(java.lang.Object anObject)
          Inserts the specified object into this editing context.
 void insertObjectWithGlobalID(java.lang.Object anObject, EOGlobalID aGlobalID)
          Inserts the specified object into this editing context with the specified id, which is expected to be a temporary id.
static boolean instancesRetainRegisteredObjects()
          Returns whether editing contexts are configured to retain strong references to their registered objects.
 void invalidateAllObjects()
          Turn all objects in this editing context into faults, so that they will be fetched the next time they are accessed, and calls invalidateObjectsWithGlobalIDs on the parent object store.
 void invalidateObjectsWithGlobalIDs(java.util.List anArray)
          Turns the objects with the specified ids into faults, so that they will be fetched the next time they are accessed, and forwards the call to the parent object store.
 boolean isObjectLockedWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext)
          Returns whether the object referenced by the specified id is locked.
 void lockObject(java.lang.Object anObject)
          Locks the specified object in this editing context by calling lockObjectWithGlobalID on the parent store.
 void lockObjectWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext)
          Locks the object referenced by the specified id in the specified editing context.
 boolean locksObjectsBeforeFirstModification()
          Returns whether this editing context attempts to lock objects when they are first modified.
 java.lang.Object messageHandler()
          Returns the message handler for this editing context, or null if no message handler has been set.
 java.lang.Object objectForGlobalID(EOGlobalID aGlobalID)
          Returns the object registered in this editing context for the specified id, or null if that id is not registered.
 net.wotonomy.foundation.NSArray objectsForSourceGlobalID(EOGlobalID aGlobalID, java.lang.String aRelationshipKey, EOEditingContext aContext)
          Returns a read-only List of objects associated with the object with the specified id for the specified property relationship.
 net.wotonomy.foundation.NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec)
          Returns a read-only List of objects the meet the criteria of the supplied specification.
 net.wotonomy.foundation.NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec, EOEditingContext aContext)
          Returns a read-only List of objects the meet the criteria of the supplied specification.
 void objectWillChange(java.lang.Object anObject)
          Implementation of the EOObserving interface.
 EOObjectStore parentObjectStore()
          Returns the parent object store for this editing context.
 void processRecentChanges()
          Updates the inserted, updated, and deleted objects lists, and posts notifications about which objects have been changed.
 boolean propagatesDeletesAtEndOfEvent()
          Returns whether this editing context propagates deletes immediately after the event that triggered the delete.
 void recordObject(java.lang.Object anObject, EOGlobalID aGlobalID)
          Registers the specified object in this editing context for the specified id.
 void redo()
          Undoes the last undo operation.
 void refault()
          Refaults this editing context, turning all unmodified objects into faults.
 void refaultObject(java.lang.Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext)
          Refaults the specified object, turning it into a fault for the specified global id in the specified context.
 void refaultObjects()
          Turns all unmodified objects into faults, calling processRecentChanges() and then refaultObject() for each unmodified object.
 void refetch()
          Calls editingContextWillSaveChanges() on all editors, and then calls invalidateAllObjects().
 net.wotonomy.foundation.NSArray registeredObjects()
          Returns a read-only List of all objects registered in this editing context.
 void removeEditor(java.lang.Object anObject)
          Unregisters the specified editor with this editing context.
 void reset()
          Unregisters all objects from this editing context, and resets the fetch timestamp.
 void revert()
          Reverts the objects in this editing context to their original state.
 EOObjectStore rootObjectStore()
          Returns the root object store, which is the parent of all parent object stores of this editing context.
 void saveChanges()
          Calls editingContextWillSaveChanges on all editors, and commits all changes in this editing context to the parent editing context by calling saveChangesInEditingContext to the parent.
 void saveChangesInEditingContext(EOEditingContext aContext)
          Commits all changes in the specified editing context to this one.
static void setDefaultFetchTimestampLag(double aDouble)
          Sets the global default fetch timestamp lag.
static void setDefaultParentObjectStore(EOObjectStore anObjectStore)
          Sets the global default parent object store, used for the parameterless constructor.
 void setDelegate(java.lang.Object anObject)
          Sets the delegate for this editing context.
 void setFetchTimestamp(double aDouble)
          Sets the fetch timestamp for this editing context.
static void setInstancesRetainRegisteredObjects(boolean retainsObjects)
           
 void setLocksObjectsBeforeFirstModification(boolean locksObjects)
          Sets whether this editing context attempts to lock objects when they are first modified.
 void setMessageHandler(java.lang.Object anObject)
          Sets the message handler for this editing context.
 void setPropagatesDeletesAtEndOfEvent(boolean propagatesDeletes)
          Sets whether this editing context propagates deletes immediately after the event that triggered the delete.
 void setStopsValidationAfterFirstError(boolean stopsValidation)
          Sets whether validation is stopped after the first error occurs.
 boolean stopsValidationAfterFirstError()
          Returns whether validation is stopped after the first error occurs.
 java.lang.String toString()
           
 void undo()
          Reverts the last change on the undo stack.
 net.wotonomy.foundation.NSArray updatedObjects()
          Returns a read-only list of all objects marked as modified, but not inserted or deleted, in this editing context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EditingContextDidSaveChangesNotification

public static final java.lang.String EditingContextDidSaveChangesNotification
Key for the NSNotification posted after this editing context saves changes. Object of the notification will be this editing context, and user info will contain InsertedKey, UpdatedKey, and DeletedKey (keys are defined in EOObjectStore).

See Also:
Constant Field Values

ObjectsChangedInEditingContextNotification

public static final java.lang.String ObjectsChangedInEditingContextNotification
Key for the NSNotification posted after this editing context observes changes. Object of the notification will be this editing context, and user info will contain InsertedKey, UpdatedKey, InvalidatedKey, and DeletedKey (keys are defined in EOObjectStore), however the objects in the corresponding Lists will be the actual objects, not their ids.

See Also:
Constant Field Values

EditingContextFlushChangesRunLoopOrdering

public static int EditingContextFlushChangesRunLoopOrdering
The default run loop ordering processes recent changes before delayed observers are notified and before dispatching the AWT event queue.


MessageChangeConflict

protected static java.lang.String MessageChangeConflict
Constructor Detail

EOEditingContext

public EOEditingContext()
Default constructor creates a new editing context that uses the default object store. If the default object store has not been set, an exception is thrown.


EOEditingContext

public EOEditingContext(EOObjectStore anObjectStore)
Creates a new editing context that uses the specified object store as its parent object store.

Method Detail

addEditor

public void addEditor(java.lang.Object anEditor)
Registers the specified object as an editor for this context. The object is expected to implement EOEditingContext.Editor.


arrayFaultWithSourceGlobalID

public net.wotonomy.foundation.NSArray arrayFaultWithSourceGlobalID(EOGlobalID aGlobalID,
                                                                    java.lang.String aRelationshipKey,
                                                                    EOEditingContext aContext)
Returns a read-only List of objects associated with the object with the specified id for the specified property relationship, or may return a placeholder array that will defer the fetch until needed (aka an array fault). All objects must be registered in the specified editing context. This implementation calls to its parent object store's implementation if the requested source object is not registered in this editing context. The specified relationship key must produce a result of type Collection for the source object or an exception is thrown.

Specified by:
arrayFaultWithSourceGlobalID in class EOObjectStore

committedSnapshotForObject

public net.wotonomy.foundation.NSDictionary committedSnapshotForObject(java.lang.Object anObject)
Returns a snapshot of the specified object as it existed when it was last read or committed to the parent object store.


currentEventSnapshotForObject

public net.wotonomy.foundation.NSDictionary currentEventSnapshotForObject(java.lang.Object anObject)
Returns a snapshot of the specified object as it existed before the edits triggered by the current event loop were processed.


delegate

public java.lang.Object delegate()
Returns the delegate for this editing context, or null if no delegate has been set.


deleteObject

public void deleteObject(java.lang.Object anObject)
Deletes the specified object from this editing context. The editing context marks the object as deleted and will notify the parent store when changes are committed.


deletedObjects

public net.wotonomy.foundation.NSArray deletedObjects()
Returns a read-only List of all objects marked as deleted in this editing context.


editingContextDidForgetObjectWithGlobalID

public void editingContextDidForgetObjectWithGlobalID(EOEditingContext aContext,
                                                      EOGlobalID aGlobalID)
Called by child editing contexts when they no longer need to track the specified id. This implementation forwards the call to the parent store.

Overrides:
editingContextDidForgetObjectWithGlobalID in class EOObjectStore

editors

public net.wotonomy.foundation.NSArray editors()
Returns a read-only List of registered editors of this editing context.


faultForGlobalID

public java.lang.Object faultForGlobalID(EOGlobalID aGlobalID,
                                         EOEditingContext aContext)
Returns the object for the specified id. If the object is registered in in this context but not in the specified context, this implementation will create a copy of the object and register it in the specified context. Otherwise it will forward the call to the parent object store.

Specified by:
faultForGlobalID in class EOObjectStore

faultForRawRow

public java.lang.Object faultForRawRow(java.util.Map aDictionary,
                                       java.lang.String anEntityName)
Returns a fault representing an object of the specified entity type with values from the specified dictionary. This implementation calls faultForRawRow on the parent store.


faultForRawRow

public java.lang.Object faultForRawRow(java.util.Map aDictionary,
                                       java.lang.String anEntityName,
                                       EOEditingContext aContext)
Returns a fault representing an object of the specified entity type with values from the specified dictionary. The fault should belong to the specified editing context. This implementation forwards the call to the parent store.

Specified by:
faultForRawRow in class EOObjectStore

fetchTimestamp

public double fetchTimestamp()
Returns the fetch timestamp for this editing context.


forgetObject

public void forgetObject(java.lang.Object anObject)
Unregisters the specified object from this editing context, removing all references to it. Use this method to remove an object from the context without marking it for deletion.


globalIDForObject

public EOGlobalID globalIDForObject(java.lang.Object anObject)
Returns the id for the specified object, or null if the object is not registered in this context.


hasChanges

public boolean hasChanges()
Returns whether this editing context has changes that have not yet been committed to the parent object store.


initializeObject

public void initializeObject(java.lang.Object anObject,
                             EOGlobalID aGlobalID,
                             EOEditingContext aContext)
Given a newly instantiated object, this method initializes its properties to values appropriate for the specified id. The object should already belong to the specified editing context. This method is called to populate faults. This implementation will try to apply the values from an object with a matching id in this editing context if possible, calling to the parent object store only if such an object is not found.

Specified by:
initializeObject in class EOObjectStore

insertObject

public void insertObject(java.lang.Object anObject)
Inserts the specified object into this editing context. This implementation calls insertObjectWithGlobalID with an EOTemporaryGlobalID.


insertObjectWithGlobalID

public void insertObjectWithGlobalID(java.lang.Object anObject,
                                     EOGlobalID aGlobalID)
Inserts the specified object into this editing context with the specified id, which is expected to be a temporary id.


insertedObjects

public net.wotonomy.foundation.NSArray insertedObjects()
Returns a read-only List of the objects that have been inserted into this editing context.


invalidateAllObjects

public void invalidateAllObjects()
Turn all objects in this editing context into faults, so that they will be fetched the next time they are accessed, and calls invalidateObjectsWithGlobalIDs on the parent object store.

Specified by:
invalidateAllObjects in class EOObjectStore

invalidateObjectsWithGlobalIDs

public void invalidateObjectsWithGlobalIDs(java.util.List anArray)
Turns the objects with the specified ids into faults, so that they will be fetched the next time they are accessed, and forwards the call to the parent object store.

Specified by:
invalidateObjectsWithGlobalIDs in class EOObjectStore

isObjectLockedWithGlobalID

public boolean isObjectLockedWithGlobalID(EOGlobalID aGlobalID,
                                          EOEditingContext aContext)
Returns whether the object referenced by the specified id is locked. This implementation simply forwards the call to the parent object store.

Specified by:
isObjectLockedWithGlobalID in class EOObjectStore

lockObject

public void lockObject(java.lang.Object anObject)
Locks the specified object in this editing context by calling lockObjectWithGlobalID on the parent store.


lockObjectWithGlobalID

public void lockObjectWithGlobalID(EOGlobalID aGlobalID,
                                   EOEditingContext aContext)
Locks the object referenced by the specified id in the specified editing context. This implementation simply forwards the call to the parent object store.

Specified by:
lockObjectWithGlobalID in class EOObjectStore

locksObjectsBeforeFirstModification

public boolean locksObjectsBeforeFirstModification()
Returns whether this editing context attempts to lock objects when they are first modified.


messageHandler

public java.lang.Object messageHandler()
Returns the message handler for this editing context, or null if no message handler has been set.


objectForGlobalID

public java.lang.Object objectForGlobalID(EOGlobalID aGlobalID)
Returns the object registered in this editing context for the specified id, or null if that id is not registered.


objectsForSourceGlobalID

public net.wotonomy.foundation.NSArray objectsForSourceGlobalID(EOGlobalID aGlobalID,
                                                                java.lang.String aRelationshipKey,
                                                                EOEditingContext aContext)
Returns a read-only List of objects associated with the object with the specified id for the specified property relationship. This method may not return an array fault because array faults call this method to fetch on demand. All objects must be registered the specified editing context. The specified relationship key must produce a result of type Collection for the source object or an exception is thrown.

Specified by:
objectsForSourceGlobalID in class EOObjectStore

objectsWithFetchSpecification

public net.wotonomy.foundation.NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec)
Returns a read-only List of objects the meet the criteria of the supplied specification. This method simply calls objectsWithFetchSpecification on this editing context with this editing context as the parameter.


objectsWithFetchSpecification

public net.wotonomy.foundation.NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec,
                                                                     EOEditingContext aContext)
Returns a read-only List of objects the meet the criteria of the supplied specification. Faults are not allowed in the array. If any objects are already fetched, they should not be refetched. All objects should belong to the specified editing context. This implementation forwards the call to the parent object store, which will register each object in the specified editing context only if it does not already exist.

Specified by:
objectsWithFetchSpecification in class EOObjectStore

parentObjectStore

public EOObjectStore parentObjectStore()
Returns the parent object store for this editing context. The result will not be null.


processRecentChanges

public void processRecentChanges()
Updates the inserted, updated, and deleted objects lists, and posts notifications about which objects have been changed. This method is called at the end of an event loop in which objects were modified. This method is additionally called by saveChanges() so that any changes in the same event loop will be processed correctly before calling to the parent object store. This implementation updates those lists immediately, but only posts notifications when this method is called.


propagatesDeletesAtEndOfEvent

public boolean propagatesDeletesAtEndOfEvent()
Returns whether this editing context propagates deletes immediately after the event that triggered the delete. Otherwise, propagation occurs only before commit.


recordObject

public void recordObject(java.lang.Object anObject,
                         EOGlobalID aGlobalID)
Registers the specified object in this editing context for the specified id. This method is called by an object store when fetching objects for a display group, or when objects are inserted into a display group. This implementation will re-register the object under the new id if it is already registered under a different id.


redo

public void redo()
Undoes the last undo operation.


refault

public void refault()
Refaults this editing context, turning all unmodified objects into faults. This implementation calls editingContextWillSaveChanges() on all editors, and then calls refaultObjects().


refaultObject

public void refaultObject(java.lang.Object anObject,
                          EOGlobalID aGlobalID,
                          EOEditingContext aContext)
Refaults the specified object, turning it into a fault for the specified global id in the specified context.

Specified by:
refaultObject in class EOObjectStore

refaultObjects

public void refaultObjects()
Turns all unmodified objects into faults, calling processRecentChanges() and then refaultObject() for each unmodified object.


refetch

public void refetch()
Calls editingContextWillSaveChanges() on all editors, and then calls invalidateAllObjects().


registeredObjects

public net.wotonomy.foundation.NSArray registeredObjects()
Returns a read-only List of all objects registered in this editing context.


removeEditor

public void removeEditor(java.lang.Object anObject)
Unregisters the specified editor with this editing context.


reset

public void reset()
Unregisters all objects from this editing context, and resets the fetch timestamp.


revert

public void revert()
Reverts the objects in this editing context to their original state. Calls editingContextWillSaveChanges on all editors, discards all inserted objects, restores deleted objects, and applies the fetch snapshot to all registered objects.


rootObjectStore

public EOObjectStore rootObjectStore()
Returns the root object store, which is the parent of all parent object stores of this editing context.


saveChanges

public void saveChanges()
Calls editingContextWillSaveChanges on all editors, and commits all changes in this editing context to the parent editing context by calling saveChangesInEditingContext to the parent. Then posts EditingContextDidSaveChangeNotification.


saveChangesInEditingContext

public void saveChangesInEditingContext(EOEditingContext aContext)
Commits all changes in the specified editing context to this one. Called by child editing contexts in their saveChanges() method.

Specified by:
saveChangesInEditingContext in class EOObjectStore

setDelegate

public void setDelegate(java.lang.Object anObject)
Sets the delegate for this editing context. Note: this implementation retains only a weak reference to the specified object.


setFetchTimestamp

public void setFetchTimestamp(double aDouble)
Sets the fetch timestamp for this editing context.


setLocksObjectsBeforeFirstModification

public void setLocksObjectsBeforeFirstModification(boolean locksObjects)
Sets whether this editing context attempts to lock objects when they are first modified. Default is false.


setMessageHandler

public void setMessageHandler(java.lang.Object anObject)
Sets the message handler for this editing context. Note: this implementation retains only a weak reference to the specified object.


setPropagatesDeletesAtEndOfEvent

public void setPropagatesDeletesAtEndOfEvent(boolean propagatesDeletes)
Sets whether this editing context propagates deletes immediately after the event that triggered the delete. Otherwise, propagation occurs only before commit. Default is true.


setStopsValidationAfterFirstError

public void setStopsValidationAfterFirstError(boolean stopsValidation)
Sets whether validation is stopped after the first error occurs. Otherwise, validation will continue for all other objects. Default is true.


stopsValidationAfterFirstError

public boolean stopsValidationAfterFirstError()
Returns whether validation is stopped after the first error occurs. Otherwise, validation will continue for all other objects.


undo

public void undo()
Reverts the last change on the undo stack.


updatedObjects

public net.wotonomy.foundation.NSArray updatedObjects()
Returns a read-only list of all objects marked as modified, but not inserted or deleted, in this editing context.


handleNotification

public void handleNotification(net.wotonomy.foundation.NSNotification aNotification)
Handles notifications from parent store, looking for InvalidatedAllObjectsInStoreNotification and ObjectsChangedInStoreNotification. The former causes all objects in this store to be invalidated. The latter refaults the invalidated ids, merges changes from the updated ids, and forgets the deleted ids, then posts a ObjectsChangedInStoreNotification. Note: This method is not in the public specification.


objectWillChange

public void objectWillChange(java.lang.Object anObject)
Implementation of the EOObserving interface. Called before objects are modified.

Specified by:
objectWillChange in interface EOObserving

defaultFetchTimestampLag

public static double defaultFetchTimestampLag()

defaultParentObjectStore

public static EOObjectStore defaultParentObjectStore()
Returns the default parent object store for all object stores created with the parameterless constructor.


instancesRetainRegisteredObjects

public static boolean instancesRetainRegisteredObjects()
Returns whether editing contexts are configured to retain strong references to their registered objects. If false, editing contexts will only retain weak references to their registered objects.


setDefaultFetchTimestampLag

public static void setDefaultFetchTimestampLag(double aDouble)
Sets the global default fetch timestamp lag.


setDefaultParentObjectStore

public static void setDefaultParentObjectStore(EOObjectStore anObjectStore)
Sets the global default parent object store, used for the parameterless constructor.


setInstancesRetainRegisteredObjects

public static void setInstancesRetainRegisteredObjects(boolean retainsObjects)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

flushRecentChanges

public void flushRecentChanges(java.lang.Object anObject)
This method is called by the event queue run loop and calls processRecentChanges. NOTE: This method is not part of the specification.



Copyright © 2006 null. All Rights Reserved.