|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wotonomy.control.EOObjectStore net.wotonomy.control.EOObjectStoreCoordinator
public class EOObjectStoreCoordinator
A representation of a channel of communication to the database.
Field Summary | |
---|---|
static java.lang.String |
CooperatingObjectStoreNeededNotification
|
static java.lang.String |
CooperatingObjectStoreWasAddedNotification
|
static java.lang.String |
CooperatingObjectStoreWasRemovedNotification
|
static java.lang.String |
FetchSpecificationKey
|
static java.lang.String |
GlobalIDKey
|
static java.lang.String |
ObjectKey
|
Fields inherited from class net.wotonomy.control.EOObjectStore |
---|
DeletedKey, InsertedKey, InvalidatedAllObjectsInStoreNotification, InvalidatedKey, ObjectsChangedInStoreNotification, UpdatedKey |
Constructor Summary | |
---|---|
EOObjectStoreCoordinator()
|
Method Summary | |
---|---|
void |
_invalidatedAllObjectsInSubStore(net.wotonomy.foundation.NSNotification nsnotification)
|
void |
_objectsChangedInSubStore(net.wotonomy.foundation.NSNotification nsnotification)
|
void |
addCooperatingObjectStore(EOCooperatingObjectStore eocooperatingobjectstore)
|
net.wotonomy.foundation.NSArray |
arrayFaultWithSourceGlobalID(EOGlobalID eoglobalid,
java.lang.String s,
EOEditingContext eoeditingcontext)
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). |
net.wotonomy.foundation.NSArray |
cooperatingObjectStores()
|
static EOObjectStoreCoordinator |
defaultCoordinator()
|
void |
dispose()
|
void |
editingContextDidForgetObjectWithGlobalID(EOEditingContext eoeditingcontext,
EOGlobalID eoglobalid)
Called by editing contexts when they no longer need to track the specified id. |
java.lang.Object |
faultForGlobalID(EOGlobalID eoglobalid,
EOEditingContext eoeditingcontext)
Returns the object for the specified id. |
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. |
java.lang.Object |
faultForRawRow(net.wotonomy.foundation.NSDictionary nsdictionary,
java.lang.String s,
EOEditingContext eoeditingcontext)
|
void |
forwardUpdateForObject(EOEnterpriseObject eoenterpriseobject,
net.wotonomy.foundation.NSDictionary nsdictionary)
|
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. |
void |
invalidateAllObjects()
Remove all values from all objects in memory, turning them into faults, and posts an NSNotification that all objects have been invalidated. |
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. |
void |
invalidateObjectsWithGlobalIDs(net.wotonomy.foundation.NSArray nsarray)
|
boolean |
isObjectLockedWithGlobalID(EOGlobalID eoglobalid,
EOEditingContext eoeditingcontext)
Returns whether the object corresponding to the specified id is locked. |
void |
lockObjectWithGlobalID(EOGlobalID eoglobalid,
EOEditingContext eoeditingcontext)
Locks the object corresponding to the specified id is locked. |
net.wotonomy.foundation.NSArray |
objectsForSourceGlobalID(EOGlobalID eoglobalid,
java.lang.String s,
EOEditingContext eoeditingcontext)
Returns a List of objects associated with the object with the specified id for the specified property relationship. |
EOCooperatingObjectStore |
objectStoreForFetchSpecification(EOFetchSpecification eofetchspecification)
|
EOCooperatingObjectStore |
objectStoreForGlobalID(EOGlobalID eoglobalid)
|
EOCooperatingObjectStore |
objectStoreForObject(EOEnterpriseObject eoenterpriseobject)
|
net.wotonomy.foundation.NSArray |
objectsWithFetchSpecification(EOFetchSpecification eofetchspecification,
EOEditingContext eoeditingcontext)
Returns a List of objects the meet the criteria of the supplied specification. |
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. |
void |
removeCooperatingObjectStore(EOCooperatingObjectStore eocooperatingobjectstore)
|
void |
saveChangesInEditingContext(EOEditingContext eoeditingcontext)
Writes all changes in the specified editing context to the respository. |
static void |
setDefaultCoordinator(EOObjectStoreCoordinator eoobjectstorecoordinator)
|
void |
setUserInfo(net.wotonomy.foundation.NSDictionary nsdictionary)
|
net.wotonomy.foundation.NSDictionary |
userInfo()
|
net.wotonomy.foundation.NSDictionary |
valuesForKeys(net.wotonomy.foundation.NSArray nsarray,
EOEnterpriseObject eoenterpriseobject)
|
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 CooperatingObjectStoreWasAddedNotification
public static final java.lang.String CooperatingObjectStoreWasRemovedNotification
public static final java.lang.String CooperatingObjectStoreNeededNotification
public static final java.lang.String GlobalIDKey
public static final java.lang.String FetchSpecificationKey
public static final java.lang.String ObjectKey
Constructor Detail |
---|
public EOObjectStoreCoordinator()
Method Detail |
---|
public static EOObjectStoreCoordinator defaultCoordinator()
public static void setDefaultCoordinator(EOObjectStoreCoordinator eoobjectstorecoordinator)
public void dispose()
public net.wotonomy.foundation.NSArray cooperatingObjectStores()
public void addCooperatingObjectStore(EOCooperatingObjectStore eocooperatingobjectstore)
public void removeCooperatingObjectStore(EOCooperatingObjectStore eocooperatingobjectstore)
public EOCooperatingObjectStore objectStoreForGlobalID(EOGlobalID eoglobalid)
public EOCooperatingObjectStore objectStoreForObject(EOEnterpriseObject eoenterpriseobject)
public EOCooperatingObjectStore objectStoreForFetchSpecification(EOFetchSpecification eofetchspecification)
public void forwardUpdateForObject(EOEnterpriseObject eoenterpriseobject, net.wotonomy.foundation.NSDictionary nsdictionary)
public net.wotonomy.foundation.NSDictionary valuesForKeys(net.wotonomy.foundation.NSArray nsarray, EOEnterpriseObject eoenterpriseobject)
public void saveChangesInEditingContext(EOEditingContext eoeditingcontext)
EOObjectStore
saveChangesInEditingContext
in class EOObjectStore
public net.wotonomy.foundation.NSArray objectsWithFetchSpecification(EOFetchSpecification eofetchspecification, EOEditingContext eoeditingcontext)
EOObjectStore
objectsWithFetchSpecification
in class EOObjectStore
public boolean isObjectLockedWithGlobalID(EOGlobalID eoglobalid, EOEditingContext eoeditingcontext)
EOObjectStore
isObjectLockedWithGlobalID
in class EOObjectStore
public void lockObjectWithGlobalID(EOGlobalID eoglobalid, EOEditingContext eoeditingcontext)
EOObjectStore
lockObjectWithGlobalID
in class EOObjectStore
public java.lang.Object faultForGlobalID(EOGlobalID eoglobalid, EOEditingContext eoeditingcontext)
EOObjectStore
faultForGlobalID
in class EOObjectStore
public java.lang.Object faultForRawRow(net.wotonomy.foundation.NSDictionary nsdictionary, java.lang.String s, EOEditingContext eoeditingcontext)
public net.wotonomy.foundation.NSArray arrayFaultWithSourceGlobalID(EOGlobalID eoglobalid, java.lang.String s, EOEditingContext eoeditingcontext)
EOObjectStore
arrayFaultWithSourceGlobalID
in class EOObjectStore
public void editingContextDidForgetObjectWithGlobalID(EOEditingContext eoeditingcontext, EOGlobalID eoglobalid)
EOObjectStore
editingContextDidForgetObjectWithGlobalID
in class EOObjectStore
public net.wotonomy.foundation.NSArray objectsForSourceGlobalID(EOGlobalID eoglobalid, java.lang.String s, EOEditingContext eoeditingcontext)
EOObjectStore
objectsForSourceGlobalID
in class EOObjectStore
public void invalidateObjectsWithGlobalIDs(net.wotonomy.foundation.NSArray nsarray)
public void invalidateAllObjects()
EOObjectStore
invalidateAllObjects
in class EOObjectStore
public void _objectsChangedInSubStore(net.wotonomy.foundation.NSNotification nsnotification)
public void _invalidatedAllObjectsInSubStore(net.wotonomy.foundation.NSNotification nsnotification)
public void setUserInfo(net.wotonomy.foundation.NSDictionary nsdictionary)
public net.wotonomy.foundation.NSDictionary userInfo()
public java.lang.Object faultForRawRow(java.util.Map aDictionary, java.lang.String anEntityName, EOEditingContext aContext)
EOObjectStore
faultForRawRow
in class EOObjectStore
EOObjectStore.faultForRawRow(Map, String, EOEditingContext)
public void initializeObject(java.lang.Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext)
EOObjectStore
initializeObject
in class EOObjectStore
EOObjectStore.initializeObject(Object, EOGlobalID, EOEditingContext)
public void invalidateObjectsWithGlobalIDs(java.util.List aList)
EOObjectStore
invalidateObjectsWithGlobalIDs
in class EOObjectStore
EOObjectStore.invalidateObjectsWithGlobalIDs(List)
public void refaultObject(java.lang.Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext)
EOObjectStore
refaultObject
in class EOObjectStore
EOObjectStore.refaultObject(Object, EOGlobalID, EOEditingContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |