org.openmobileis.database.fastobjectdb.db.test
Class TestFODBSyncTarget

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget
All Implemented Interfaces:
FODBSyncTarget

public final class TestFODBSyncTarget
extends java.lang.Object
implements FODBSyncTarget

Title: OpenMobileIS project source
Description:

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Constructor Summary
TestFODBSyncTarget()
           
 
Method Summary
 void connect(Credential cred)
           
 void deleteCollectionObject(java.lang.String id)
           
 void disconnect()
           
 Array getAllCollectionObject()
           
 SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber)
          return all atomic object uid modified since specified syncnumber
 java.lang.String getCollectionName()
           
 java.lang.Object getCollectionObjectWithId(java.lang.String id)
           
 SynchroConflicResolver getConflicResolver()
           
 int getUpdateMaxNbRow()
          Return the max number of row that update file can contains If more than max row must be updated on the PDA, the database file will be send.
 void updateCollectionObject(java.lang.Object obj)
           
 void updateSynchroDB(FastObjectDB db)
          call by synchronisation service during synchronisation when collection db is generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFODBSyncTarget

public TestFODBSyncTarget()
Method Detail

getCollectionName

public java.lang.String getCollectionName()
Specified by:
getCollectionName in interface FODBSyncTarget

getCollectionObjectWithId

public java.lang.Object getCollectionObjectWithId(java.lang.String id)
                                           throws OpenMSPException
Specified by:
getCollectionObjectWithId in interface FODBSyncTarget
Throws:
OpenMSPException

getAllCollectionObject

public Array getAllCollectionObject()
                             throws OpenMSPException
Specified by:
getAllCollectionObject in interface FODBSyncTarget
Throws:
OpenMSPException

updateCollectionObject

public void updateCollectionObject(java.lang.Object obj)
                            throws OpenMSPException
Specified by:
updateCollectionObject in interface FODBSyncTarget
Throws:
OpenMSPException

deleteCollectionObject

public void deleteCollectionObject(java.lang.String id)
                            throws OpenMSPException
Specified by:
deleteCollectionObject in interface FODBSyncTarget
Throws:
OpenMSPException

getConflicResolver

public SynchroConflicResolver getConflicResolver()
Specified by:
getConflicResolver in interface FODBSyncTarget

getAllModifiedAtomicObjectSince

public SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber)
                                                      throws OpenMSPException
Description copied from interface: FODBSyncTarget
return all atomic object uid modified since specified syncnumber

Specified by:
getAllModifiedAtomicObjectSince in interface FODBSyncTarget
Throws:
OpenMSPException

getUpdateMaxNbRow

public int getUpdateMaxNbRow()
Description copied from interface: FODBSyncTarget
Return the max number of row that update file can contains If more than max row must be updated on the PDA, the database file will be send. If return -1 (default implementation) max row in not taken into account (ie always update file)

Specified by:
getUpdateMaxNbRow in interface FODBSyncTarget

updateSynchroDB

public void updateSynchroDB(FastObjectDB db)
                     throws OpenMSPException
Description copied from interface: FODBSyncTarget
call by synchronisation service during synchronisation when collection db is generated. Use to modifiy db objects before the db files are send to the PDA.

Specified by:
updateSynchroDB in interface FODBSyncTarget
Parameters:
db -
Throws:
OpenMSPException

connect

public void connect(Credential cred)
             throws UserNotFoundException,
                    ServiceException
Specified by:
connect in interface FODBSyncTarget
Throws:
UserNotFoundException
ServiceException

disconnect

public void disconnect()
Specified by:
disconnect in interface FODBSyncTarget


Copyright 2005 e-Care. All Rights Reserved.