1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
package net.wotonomy.control;
import java.util.List;
import java.util.Map;
import net.wotonomy.foundation.NSArray;
/**
* A implementation of EOObjectStore that just delegates to a child store.
*
* The reason for creating this is so that I can add tracing to see where the various calls are going;
* since I'm still unsure on what needs to be done to build a compliant and working implementation
* of EOObjectStore, and to what degree AbstractObjectStore helps with that.
*
* @author bjculkin
*
*/
public class TracingObjectStore extends EOObjectStore {
private EOObjectStore delegate;
public TracingObjectStore(EOObjectStore store) {
this.delegate = store;
}
@Override
public NSArray<?> arrayFaultWithSourceGlobalID(EOGlobalID aGlobalID, String aRelationship,
EOEditingContext aContext) {
return delegate.arrayFaultWithSourceGlobalID(aGlobalID, aRelationship, aContext);
}
@Override
public Object faultForGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext) {
return delegate.faultForGlobalID(aGlobalID, aContext);
}
@Override
public Object faultForRawRow(Map aDictionary, String anEntityName, EOEditingContext aContext) {
return delegate.faultForRawRow(aDictionary, anEntityName, aContext);
}
@Override
public void initializeObject(Object eo, EOGlobalID aGlobalID, EOEditingContext aContext) {
delegate.initializeObject(eo, aGlobalID, aContext);
}
@Override
public void invalidateAllObjects() {
delegate.invalidateAllObjects();
}
@Override
public void invalidateObjectsWithGlobalIDs(List aList) {
delegate.invalidateObjectsWithGlobalIDs(aList);
}
@Override
public boolean isObjectLockedWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext) {
return delegate.isObjectLockedWithGlobalID(aGlobalID, aContext);
}
@Override
public void lockObjectWithGlobalID(EOGlobalID aGlobalID, EOEditingContext aContext) {
delegate.lockObjectWithGlobalID(aGlobalID, aContext);
}
@Override
public NSArray objectsForSourceGlobalID(EOGlobalID aGlobalID, String aRelationship, EOEditingContext aContext) {
return delegate.objectsForSourceGlobalID(aGlobalID, aRelationship, aContext);
}
@Override
public NSArray objectsWithFetchSpecification(EOFetchSpecification aFetchSpec, EOEditingContext aContext) {
return delegate.objectsWithFetchSpecification(aFetchSpec, aContext);
}
@Override
public void refaultObject(Object anObject, EOGlobalID aGlobalID, EOEditingContext aContext) {
delegate.refaultObject(anObject, aGlobalID, aContext);
}
@Override
public void saveChangesInEditingContext(EOEditingContext aContext) {
delegate.saveChangesInEditingContext(aContext);
}
}
|