Definition at line 73 of file FODBOpenMSPSynchroTargetWrapper.java.
Public Member Functions | |
FODBOpenMSPSynchroTargetWrapper (FODBSyncTarget syncService, String pregenerateddbpath) | |
Use this constructor to work with pregenerated DB file for complete synchronisation pregenerateddbpath is the path to the directory where pregenerated collection file are stored. | |
FODBOpenMSPSynchroTargetWrapper (FODBSyncTarget syncService) | |
Use this constructor to generate DB file during synchronisation if needed (complete synchronisation) or when no complete synchronisation is needed. | |
String | getTargetName () |
return the target listener name | |
Protected Member Functions | |
void | connect (Credential cred) throws UserNotFoundException, ServiceException |
validate the credential and connect if needed | |
SynchroAtomicObject[] | getAllModifiedAtomicObjectSince (long syncNumber) throws OpenMSPException |
return all atomic object uid modified since specified date for service | |
void | updateTargetWithSynchroObject (Object syncObject, long updateSynchroNumber) throws OpenMSPException |
Update the server side with the specified object. | |
void | deleteTargetForSynchroObjectId (String uid, long updateSynchroNumber) throws OpenMSPException |
delete the server side object with the specified object id. | |
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 | processSyncActionMetaData (String metadata) throws OpenMSPException |
call to process sync command meta data | |
OpenMISFile[] | getDatabaseImportFiles () throws OpenMSPException |
call for complete DB synchro. |
void org.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper.updateTargetWithSynchroObject | ( | Object | syncObject, | |
long | updateSynchroNumber | |||
) | throws OpenMSPException [protected, virtual] |
Update the server side with the specified object.
To update AtomicObjectModification correctly if use the updatesynchronumber.
syncObject | : object to update on the server side. | |
updateSynchroNumber |
OpenMSPException |
Implements org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.
Definition at line 150 of file FODBOpenMSPSynchroTargetWrapper.java.
References org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget.updateCollectionObject().
void org.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper.deleteTargetForSynchroObjectId | ( | String | uid, | |
long | updateSynchroNumber | |||
) | throws OpenMSPException [protected, virtual] |
delete the server side object with the specified object id.
To update AtomicObjectModification correctly if use the updatesynchronumber.
uid | :unique identifier of the object to delete. | |
updateSynchroNumber |
OpenMSPException |
Implements org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.
Definition at line 159 of file FODBOpenMSPSynchroTargetWrapper.java.
References org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget.deleteCollectionObject().
int org.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper.getUpdateMaxNbRow | ( | ) | [protected] |
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) If return 0 the database file is always send
Reimplemented from org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.
Definition at line 179 of file FODBOpenMSPSynchroTargetWrapper.java.
References org.openmobileis.database.fastobjectdb.synchro.server.FODBSyncTarget.getUpdateMaxNbRow().
OpenMISFile [] org.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper.getDatabaseImportFiles | ( | ) | throws OpenMSPException [protected, virtual] |
call for complete DB synchro.
return all the file needed to dump the terminal db for this service.
ServiceException |
Implements org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.
Definition at line 255 of file FODBOpenMSPSynchroTargetWrapper.java.