org.openmobileis.database.fastobjectdb.synchro.server
Interface FODBSyncTarget

All Known Implementing Classes:
TestFODBSyncTarget

public interface FODBSyncTarget

Title: OpenMobileIS project source
Description: To specify the temp directory where generated db file (during complete synchronisation) is use the property :org.openmobileis.database.fastobjectdb.synchro.server.generateddb.installpath

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

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.
 

Method Detail

getCollectionName

public java.lang.String getCollectionName()

getCollectionObjectWithId

public java.lang.Object getCollectionObjectWithId(java.lang.String id)
                                           throws OpenMSPException
Throws:
OpenMSPException

updateCollectionObject

public void updateCollectionObject(java.lang.Object obj)
                            throws OpenMSPException
Throws:
OpenMSPException

deleteCollectionObject

public void deleteCollectionObject(java.lang.String id)
                            throws OpenMSPException
Throws:
OpenMSPException

getConflicResolver

public SynchroConflicResolver getConflicResolver()

getAllCollectionObject

public Array getAllCollectionObject()
                             throws OpenMSPException
Throws:
OpenMSPException

getAllModifiedAtomicObjectSince

public SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber)
                                                      throws OpenMSPException
return all atomic object uid modified since specified syncnumber

Throws:
OpenMSPException

getUpdateMaxNbRow

public 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. If return -1 (default implementation) max row in not taken into account (ie always update file)


updateSynchroDB

public void updateSynchroDB(FastObjectDB db)
                     throws OpenMSPException
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.

Parameters:
db -
Throws:
OpenMSPException

connect

public void connect(Credential cred)
             throws UserNotFoundException,
                    ServiceException
Throws:
UserNotFoundException
ServiceException

disconnect

public void disconnect()


Copyright 2005 e-Care. All Rights Reserved.