00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 package org.openmobileis.module.test.server;
00029
00030 import org.openmobileis.common.user.UserNotFoundException;
00031 import org.openmobileis.common.util.collection.Array;
00032 import org.openmobileis.common.util.exception.ServiceException;
00033 import org.openmobileis.common.util.log.LogManager;
00034 import org.openmobileis.database.fastobjectdb.FastObjectDB;
00035 import org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget;
00036 import org.openmobileis.synchro.algo.replication.SynchroAtomicObject;
00037 import org.openmobileis.synchro.algo.replication.SynchroConflicResolver;
00038 import org.openmobileis.synchro.openmsp.OpenMSPException;
00039 import org.openmobileis.synchro.security.auth.Credential;
00040
00049 public final class TestCollectionSynchroTargetV1 implements FODBSyncTarget {
00050
00054 public TestCollectionSynchroTargetV1() {
00055 }
00056
00057
00058
00059
00060 public void connect(Credential cred) throws UserNotFoundException, ServiceException {
00061 LogManager.traceInfo(0, "TestModuleSynchroTarget2 connect");
00062 }
00063
00064
00065
00066
00067 public void deleteCollectionObject(String id, long updateSynchroNumber) throws OpenMSPException {
00068 LogManager.traceInfo(0, "TestModuleSynchroTarget2 deletecollection");
00069 }
00070
00071
00072
00073
00074 public void disconnect() {
00075 LogManager.traceInfo(0, "TestModuleSynchroTarget2 disconnect");
00076 }
00077
00078
00079
00080
00081 public Array getAllCollectionObject() throws OpenMSPException {
00082 LogManager.traceInfo(0, "TestModuleSynchroTarget2 getAllCollectionObject");
00083 return null;
00084 }
00085
00086
00087
00088
00089 public SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber) throws OpenMSPException {
00090 LogManager.traceInfo(0, "TestModuleSynchroTarget2 getAllModifiedAtomicObject");
00091 return null;
00092 }
00093
00094
00095
00096
00097 public String getCollectionName() {
00098 return "testcollectionv1";
00099 }
00100
00101
00102
00103
00104 public Object getCollectionObjectWithId(String id) throws OpenMSPException {
00105 LogManager.traceInfo(0, "TestModuleSynchroTarget2 getCollectionObjectWithId");
00106 return null;
00107 }
00108
00109
00110
00111
00112 public SynchroConflicResolver getConflicResolver() {
00113 LogManager.traceInfo(0, "TestModuleSynchroTarget2 getConflicResolver");
00114 return null;
00115 }
00116
00117
00118
00119
00120 public int getUpdateMaxNbRow() {
00121 LogManager.traceInfo(0, "TestModuleSynchroTarget2 getUpdateMaxNbRow");
00122 return 0;
00123 }
00124
00125
00126
00127
00128 public void setSendSynchroMetaData(Object metadata) throws OpenMSPException {
00129 LogManager.traceInfo(0, "TestModuleSynchroTarget2 setSendSynchroMetaData");
00130
00131 }
00132
00133
00134
00135
00136 public void updateCollectionObject(Object obj, long updateSynchroNumber) throws OpenMSPException {
00137 LogManager.traceInfo(0, "TestModuleSynchroTarget2 updateCollectionObject");
00138
00139 }
00140
00141
00142
00143
00144 public void updateSynchroDB(FastObjectDB db) throws OpenMSPException {
00145 LogManager.traceInfo(0, "TestModuleSynchroTarget2 updateSynchroDB");
00146
00147 }
00148
00149 }