org.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper Class Reference

Inheritance diagram for org.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper:

org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPSynchroTargetListener

List of all members.


Detailed Description

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

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

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.

Member Function Documentation

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.

Parameters:
syncObject : object to update on the server side.
updateSynchroNumber 
Exceptions:
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.

Parameters:
uid :unique identifier of the object to delete.
updateSynchroNumber 
Exceptions:
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.

Returns:
Exceptions:
ServiceException 

Implements org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.

Definition at line 255 of file FODBOpenMSPSynchroTargetWrapper.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:21 2010 for OpenMobileIS by  doxygen 1.5.4