00001
00025 package org.openmobileis.test.database;
00026
00027 import java.io.Serializable;
00028
00029 import org.openmobileis.database.fastobjectdb.synchro.client.SynchroFODBReturnListener;
00030 import org.openmobileis.synchro.openmsp.OpenMSPException;
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 public final class TestSynchroFODBReturnListener implements SynchroFODBReturnListener {
00041
00042 public Serializable testMetadata;
00043 public boolean notifyBeginDBUpdateCall = false;
00044 public String notifyDBDeleteId = null;
00045 public String notifyFODBObjectSynchroDoneId = null;
00046 public boolean notifySynchroBeginCall = false;
00047 public boolean notifySynchroEndCall = false;
00051 public TestSynchroFODBReturnListener() {
00052 }
00053
00054
00055
00056
00057 public Serializable getSendSynchroMetada() throws OpenMSPException {
00058 return testMetadata;
00059 }
00060
00061
00062
00063
00064 public Object notifyBeginDBUpdate(Object object) throws OpenMSPException {
00065 notifyBeginDBUpdateCall = true;
00066 return object;
00067 }
00068
00069
00070
00071
00072 public void notifyDBDelete(String objectId) throws OpenMSPException {
00073 notifyDBDeleteId = objectId;
00074 }
00075
00076
00077
00078
00079 public void notifyFODBObjectSynchroDone(String ObjectId) throws OpenMSPException {
00080 notifyFODBObjectSynchroDoneId = ObjectId;
00081 }
00082
00083
00084
00085
00086 public void notifySynchroBegin() {
00087 notifySynchroBeginCall = true;
00088 notifySynchroEndCall = false;
00089 notifyBeginDBUpdateCall = false;
00090 notifyDBDeleteId = null;
00091 notifyFODBObjectSynchroDoneId = null;
00092 }
00093
00094
00095
00096
00097 public void notifySynchroEnd() {
00098 notifySynchroEndCall = true;
00099 }
00100
00101 }