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

java.lang.Object
  extended byOpenMSPDBSynchroTargetListener
      extended byorg.openmobileis.database.fastobjectdb.synchro.server.FODBOpenMSPSynchroTargetWrapper

public final class FODBOpenMSPSynchroTargetWrapper
extends OpenMSPDBSynchroTargetListener

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

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu
See Also:
Serialized Form

Constructor Summary
FODBOpenMSPSynchroTargetWrapper(FODBSyncTarget syncService)
          Use this constructor to generate DB file during synchronisation if needed (complete synchronisation) or when no complete synchronisation is needed.
FODBOpenMSPSynchroTargetWrapper(FODBSyncTarget syncService, java.lang.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.
 
Method Summary
protected  void connect(Credential cred)
           
protected  void deleteTargetForSynchroObjectId(java.lang.String uid)
           
protected  void disconnect()
           
protected  SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncNumber)
           
protected  OpenMISFile[] getDatabaseImportFiles()
           
protected  SynchroConflicResolver getSynchroConflicResolver()
           
 java.lang.String getTargetName()
           
protected  java.lang.Object getTargetObjectWithId(java.lang.String uid)
           
protected  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.
protected  void processSyncActionMetaData(java.lang.String metadata)
          call to process sync command meta data
protected  void updateTargetWithSynchroObject(java.lang.Object syncObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FODBOpenMSPSynchroTargetWrapper

public FODBOpenMSPSynchroTargetWrapper(FODBSyncTarget syncService,
                                       java.lang.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

public FODBOpenMSPSynchroTargetWrapper(FODBSyncTarget syncService)
Use this constructor to generate DB file during synchronisation if needed (complete synchronisation) or when no complete synchronisation is needed.

Method Detail

getTargetName

public java.lang.String getTargetName()

connect

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

disconnect

protected void disconnect()

getSynchroConflicResolver

protected SynchroConflicResolver getSynchroConflicResolver()

getAllModifiedAtomicObjectSince

protected SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncNumber)
                                                         throws OpenMSPException
Throws:
OpenMSPException

updateTargetWithSynchroObject

protected void updateTargetWithSynchroObject(java.lang.Object syncObject)
                                      throws OpenMSPException
Throws:
OpenMSPException

deleteTargetForSynchroObjectId

protected void deleteTargetForSynchroObjectId(java.lang.String uid)
                                       throws OpenMSPException
Throws:
OpenMSPException

getTargetObjectWithId

protected java.lang.Object getTargetObjectWithId(java.lang.String uid)
                                          throws OpenMSPException
Throws:
OpenMSPException

getUpdateMaxNbRow

protected 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) If return 0 the database file is always send


processSyncActionMetaData

protected void processSyncActionMetaData(java.lang.String metadata)
                                  throws ServiceException
call to process sync command meta data

Throws:
ServiceException

getDatabaseImportFiles

protected OpenMISFile[] getDatabaseImportFiles()
                                        throws ServiceException
Throws:
ServiceException


Copyright 2005 e-Care. All Rights Reserved.