summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/DataObjectStore.java
diff options
context:
space:
mode:
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.java12
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;