|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wotonomy.control.EOObjectStore
public abstract class EOObjectStore
EOObjectStore defines an object repository that tracks
object creations, deletions, and updates made by
EOEditingContexts.
A concrete implementation would probably write these
changes to some kind of persistent storage, like a
database.
EOEditingContext is itself a subclass of EOObjectStore
that requires an EOObjectStore parent for committing
its changes. This means that EOEditingContexts can
use other EOEditingContexts as their parent, but there
still must exist an EOObjectStore as the root of the
editing graph.
Field Summary | |
---|---|
static java.lang.String |
DeletedKey
Key for the user info of ObjectsChangedInStoreNotifications. |
static java.lang.String |
InsertedKey
Key for the user info of ObjectsChangedInStoreNotifications. |
static java.lang.String |
InvalidatedAllObjectsInStoreNotification
Key for the NSNotification posted when this object store is asked to invalidate all objects. |
static java.lang.String |
InvalidatedKey
Key for the user info of ObjectsChangedInStoreNotification. |
static java.lang.String |
ObjectsChangedInStoreNotification
Key for the NSNotification posted when this object store is changed. |
static java.lang.String |
UpdatedKey
Key for the user info of ObjectsChangedInStoreNotifications. |
Constructor Summary | |
---|---|
EOObjectStore()
Default constructor is responsible for initializing internal state. |
Method Summary | |
---|---|
abstract net.wotonomy.foundation.NSArray |
arrayFaultWithSourceGlobalID(EOGlobalID aGlobalID,
java.lang.String aRelationship,
EOEditingContext aContext)
Returns a 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 accessed (an array fault). |
void |
editingContextDidForgetObjectWithGlobalID(EOEditingContext aContext,
EOGlobalID aGlobalID)
Called by editing contexts when they no longer need to track the specified id. |
abstract java.lang.Object |
faultForGlobalID(EOGlobalID aGlobalID,
EOEditingContext aContext)
Returns the object for the specified id. |
abstract 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. |
abstract void |
initializeObject(java.lang.Object eo,
EOGlobalID aGlobalID,
EOEditingContext aContext)
Given a newly instantiated object, this method initializes its properties to values appropriate for the specified id. |
abstract void |
invalidateAllObjects()
Remove all values from all objects in memory, turning them into faults, and posts an NSNotification that all objects have been invalidated. |
abstract void |
invalidateObjectsWithGlobalIDs(java.util.List aList)
Removes values with the specified ids from memory, turning them into faults, and posts a notification that those objects have been invalidated. |
abstract boolean |
isObjectLockedWithGlobalID(EOGlobalID aGlobalID,
EOEditingContext aContext)
Returns whether the object corresponding to the specified id is locked. |
abstract void |
lockObjectWithGlobalID(EOGlobalID aGlobalID,
EOEditingContext aContext)
Locks the object corresponding to the specified id is locked. |
abstract net.wotonomy.foundation.NSArray |
objectsForSourceGlobalID(EOGlobalID aGlobalID,
java.lang.String aRelationship,
EOEditingContext aContext)
Returns a List of objects associated with the object with the specified id for the specified property relationship. |
abstract net.wotonomy.foundation.NSArray |
objectsWithFetchSpecification(EOFetchSpecification aFetchSpec,
EOEditingContext aContext)
Returns a List of objects the meet the criteria of the supplied specification. |
abstract void |
refaultObject(java.lang.Object anObject,
EOGlobalID aGlobalID,
EOEditingContext aContext)
Removes all values from the specified object, converting it into a fault for the specified id. |
abstract void |
saveChangesInEditingContext(EOEditingContext aContext)
Writes all changes in the specified editing context to the respository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DeletedKey
public static final java.lang.String InsertedKey
public static final java.lang.String UpdatedKey
public static final java.lang.String InvalidatedKey
public static final java.lang.String InvalidatedAllObjectsInStoreNotification
public static final java.lang.String ObjectsChangedInStoreNotification
Constructor Detail |
---|
public EOObjectStore()
Method Detail |
---|
public void editingContextDidForgetObjectWithGlobalID(EOEditingContext aContext, EOGlobalID aGlobalID)
public abstract net.wotonomy.foundation.NSArray arrayFaultWithSourceGlobalID(EOGlobalID aGlobalID, java.lang.String aRelationship, EOEditingContext aContext)
public abstract java.lang.Object faultForGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext)
public abstract java.lang.Object faultForRawRow(java.util.Map aDictionary, java.lang.String anEntityName, EOEditingContext aContext)
public abstract void initializeObject(java.lang.Object eo, EOGlobalID aGlobalID, EOEditingContext aContext)
public abstract void invalidateAllObjects()
public abstract void invalidateObjectsWithGlobalIDs(java.util.List aList)
public abstract boolean isObjectLockedWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext)
public abstract void lockObjectWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext)
public abstract net.wotonomy.foundation.NSArray objectsForSourceGlobalID(EOGlobalID aGlobalID, java.lang.String aRelationship, EOEditingContext aContext)
public abstract net.wotonomy.foundation.NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec, EOEditingContext aContext)
public abstract void refaultObject(java.lang.Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext)
public abstract void saveChangesInEditingContext(EOEditingContext aContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |