TestCollectionSynchroTargetV2.java

00001 /*
00002  * OpenMobileIS - a free Java(TM) Framework for mobile applications Java(TM)
00003  * Copyright (C) 2006-2008 Ubikis
00004  * All rights reserved.
00005  * Contact: pdelrieu@openmobileis.org
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00020  * USA
00021  *
00022  *  Author : Philippe Delrieu
00023  *  
00024  *  Modifications :
00025  *  Creation P.Delrieu
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 TestCollectionSynchroTargetV2 implements FODBSyncTarget {
00050 
00054         public TestCollectionSynchroTargetV2() {
00055         }
00056 
00057         /* (non-Javadoc)
00058          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#connect(org.openmobileis.synchro.security.auth.Credential)
00059          */
00060         public void connect(Credential cred) throws UserNotFoundException, ServiceException {
00061                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 connect");
00062         }
00063 
00064         /* (non-Javadoc)
00065          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#deleteCollectionObject(java.lang.String)
00066          */
00067         public void deleteCollectionObject(String id, long updateSynchroNumber) throws OpenMSPException {
00068                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 deletecollection");
00069         }
00070 
00071         /* (non-Javadoc)
00072          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#disconnect()
00073          */
00074         public void disconnect() {
00075                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 disconnect");
00076         }
00077 
00078         /* (non-Javadoc)
00079          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#getAllCollectionObject()
00080          */
00081         public Array getAllCollectionObject() throws OpenMSPException {
00082                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 getAllCollectionObject");
00083                 return null;
00084         }
00085 
00086         /* (non-Javadoc)
00087          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#getAllModifiedAtomicObjectSince(long)
00088          */
00089         public SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber) throws OpenMSPException {
00090                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 getAllModifiedAtomicObject");
00091                 return null;
00092         }
00093 
00094         /* (non-Javadoc)
00095          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#getCollectionName()
00096          */
00097         public String getCollectionName() {
00098                 return "testcollectionv2";
00099         }
00100 
00101         /* (non-Javadoc)
00102          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#getCollectionObjectWithId(java.lang.String)
00103          */
00104         public Object getCollectionObjectWithId(String id) throws OpenMSPException {
00105                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 getCollectionObjectWithId");
00106                 return null;
00107         }
00108 
00109         /* (non-Javadoc)
00110          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#getConflicResolver()
00111          */
00112         public SynchroConflicResolver getConflicResolver() {
00113                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 getConflicResolver");
00114                 return null;
00115         }
00116 
00117         /* (non-Javadoc)
00118          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#getUpdateMaxNbRow()
00119          */
00120         public int getUpdateMaxNbRow() {
00121                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 getUpdateMaxNbRow");
00122                 return 0;
00123         }
00124 
00125         /* (non-Javadoc)
00126          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#setSendSynchroMetaData(java.lang.Object)
00127          */
00128         public void setSendSynchroMetaData(Object metadata) throws OpenMSPException {
00129                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 setSendSynchroMetaData");
00130 
00131         }
00132 
00133         /* (non-Javadoc)
00134          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#updateCollectionObject(java.lang.Object)
00135          */
00136         public void updateCollectionObject(Object obj, long updateSynchroNumber) throws OpenMSPException {
00137                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 updateCollectionObject");
00138 
00139         }
00140 
00141         /* (non-Javadoc)
00142          * @see org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget#updateSynchroDB(org.openmobileis.database.fastobjectdb.FastObjectDB)
00143          */
00144         public void updateSynchroDB(FastObjectDB db) throws OpenMSPException {
00145                 LogManager.traceInfo(0, "TestModuleSynchroTarget1 updateSynchroDB");
00146 
00147         }
00148 
00149 }

Generated on Mon Jan 11 21:19:17 2010 for OpenMobileIS by  doxygen 1.5.4