diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-07-01 17:27:48 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-07-01 17:27:48 -0400 |
| commit | 02bc52037e9ccccca672d6156d9c325c74fe28b3 (patch) | |
| tree | db022b83c90562f461f4a27412caa9936a8dfd04 /projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java | |
| parent | c75d7dbd613a47b217499f7a856c469a8bc59e2a (diff) | |
Update a whole bunch of things
Yeah... not a great commit message. t.b.h, I could maybe've split the
commit into more parts; but that would be quite a lot off effort and
would have a pretty decent chance of at least one of the commits leaving
the repository in a non-working state.
For the future, will want to try and commit more often so there aren't
these mega-commits where it's just "a whole bunch of stuff changed"
Diffstat (limited to 'projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java')
| -rw-r--r-- | projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java index ac5ee44..a65e2d5 100644 --- a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java +++ b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java @@ -39,6 +39,7 @@ public class DataObjectStore extends EOObjectStore { /** * This implementation returns an appropriately configured array fault. */ + @Override public NSArray arrayFaultWithSourceGlobalID(EOGlobalID aGlobalID, String aRelationship, EOEditingContext aContext) { return new ArrayFault(aGlobalID, aRelationship, aContext); } @@ -46,6 +47,7 @@ public class DataObjectStore extends EOObjectStore { /** * This implementation returns the actual object for the specified id. */ + @Override public Object faultForGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext) { System.out.println("DataObjectStore.faultForGlobalID: * reading object * : " + aGlobalID); Object result = soup.getObjectByKey(((DataKeyID) aGlobalID).getKey()); @@ -66,6 +68,7 @@ public class DataObjectStore extends EOObjectStore { * values from the specified dictionary. The fault should belong to the * specified editing context. */ + @Override public Object faultForRawRow(Map aDictionary, String anEntityName, EOEditingContext aContext) { // TODO: faults are not yet supported throw new WotonomyException("Faults are not yet supported."); @@ -76,6 +79,7 @@ public class DataObjectStore extends EOObjectStore { * values appropriate for the specified id. The object should belong to the * specified editing context. This method is called to populate faults. */ + @Override public void initializeObject(Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext) { if (aGlobalID.isTemporary()) { // TODO: this should never happen, but it does now until we get @@ -100,6 +104,7 @@ public class DataObjectStore extends EOObjectStore { * Remove all values from all objects in memory, turning them into faults, and * posts a notification that all objects have been invalidated. */ + @Override public void invalidateAllObjects() { // does nothing except post notification @@ -111,6 +116,7 @@ public class DataObjectStore extends EOObjectStore { * Removes values with the specified ids from memory, turning them into faults, * and posts a notification that those objects have been invalidated. */ + @Override public void invalidateObjectsWithGlobalIDs(List aList) { // does nothing } @@ -118,6 +124,7 @@ public class DataObjectStore extends EOObjectStore { /** * Returns false because locking is not permitted. */ + @Override public boolean isObjectLockedWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext) { return false; } @@ -125,6 +132,7 @@ public class DataObjectStore extends EOObjectStore { /** * Does nothing because locking is not permitted. */ + @Override public void lockObjectWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext) { // does nothing } @@ -137,6 +145,7 @@ public class DataObjectStore extends EOObjectStore { * key must produce a result of type Collection for the source object or an * exception is thrown. */ + @Override public NSArray objectsForSourceGlobalID(EOGlobalID aGlobalID, String aRelationship, EOEditingContext aContext) { System.out.println("DataObjectStore.objectsForSourceGlobalID: * reading object * : " + aGlobalID); Object object = soup.getObjectByKey(((DataKeyID) aGlobalID).getKey()); @@ -176,6 +185,7 @@ public class DataObjectStore extends EOObjectStore { * If any object is already registered in the specified context, it is not * refetched and that object should be used in the array. */ + @Override public NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec, EOEditingContext aContext) { // TODO: fetch specs are not yet supported @@ -202,6 +212,7 @@ public class DataObjectStore extends EOObjectStore { * Removes all values from the specified object, converting it into a fault for * the specified id. New or deleted objects should not be refaulted. */ + @Override public void refaultObject(Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext) { // TODO: faults are not yet supported // just re-initialize the object @@ -211,6 +222,7 @@ public class DataObjectStore extends EOObjectStore { /** * Writes all changes in the specified editing context to the respository. */ + @Override public void saveChangesInEditingContext(EOEditingContext aContext) { Object o; DataKeyID id; |
