|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener
org.openmobileis.database.fastobjectdb.synchro.client.OpenMSPFODBSyncListener
Title: OpenMobileIS project source
Description:
Field Summary |
Fields inherited from class org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener |
installPath |
Fields inherited from class org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener |
ADD_ERROR_MESSAGE, DELETE_ERROR_MESSAGE, ITEM_ERROR_MESSAGE, SYNC_ERROR_MESSAGE, SYNC_UNAUTHORIZED_MESSAGE, UPDATE_ERROR_MESSAGE |
Fields inherited from interface org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener |
SYNCHRO_FAILLED, SYNCHRO_OK |
Constructor Summary | |
OpenMSPFODBSyncListener(java.lang.String collectionName)
|
Method Summary | |
void |
endSync()
Fire this event once the current synchro is ended |
protected java.lang.String[] |
getDBDataForAdd(java.lang.String pdaUID)
return the data conforme to the disptacher create AbstractQueryManager method for specified pdaUID . |
protected java.lang.String[] |
getDBDataForReplace(java.lang.String pdaUID)
return the data conforme to the disptacher update AbstractQueryManager method for specified pdaUID . |
protected ImportQueryManager |
getImportQueryManager()
return the ImportQueryManager use to make synchro data import. |
protected JournalLogRenderer |
getJournalLogRenderer()
|
protected java.lang.String |
getSendCommandMetaData()
Construct collection description to be use by server to generate collection files. |
protected java.lang.String |
getSynchroTarget()
return the target of the SYNC command use to synchronize listener data. |
java.lang.String |
getSyncName()
Return the name used to identiy the of the listener in the synchro processus. |
protected Credential |
getSyncroCredential()
return the credential to use for data synchronization. |
protected void |
importCompletSynchroDatabaseFile(java.lang.String importFile)
Call during complete synchronisation to dump the database with server data store in the specified file name. |
void |
notifySyncDataDone(java.lang.String pdaID,
int actionType)
Call when a client data modification (ActionDB) has been update on the server side. |
void |
registerSynchroListener(SynchroFODBReturnListener listener)
|
void |
startSync(Credential cred,
SynchroDescriptor synchrodescriptor)
Fire this event once a synchro is starting |
Methods inherited from class org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener |
getServerUIDForAOUID, getSyncDataForAtomicObjectUID, manageReturnStatusLog, notifyMAPofUID, receiveMapCommand, receiveResultCommand, receiveStatusCommand, receiveSyncItem, removeServerUIDForAOUID, sendData |
Methods inherited from class org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener |
addCredentialToCommand, equals, getSynchroStatus, hashCode, initListener, isSyncOK, notifySynchroFailure, receiveAddCommand, receiveDeleteCommand, receiveGetCommand, receiveReplaceCommand, receiveSyncCommand, setSynchroStatus |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OpenMSPFODBSyncListener(java.lang.String collectionName)
Method Detail |
public void registerSynchroListener(SynchroFODBReturnListener listener)
protected java.lang.String getSendCommandMetaData() throws OpenMSPException
getSendCommandMetaData
in class OpenMSPDBSyncListener
OpenMSPException
protected void importCompletSynchroDatabaseFile(java.lang.String importFile) throws DatabaseException
importCompletSynchroDatabaseFile
in class OpenMSPDBSyncListener
importFile
- : file containing server dump data file.
DatabaseException
protected java.lang.String[] getDBDataForAdd(java.lang.String pdaUID) throws OpenMSPException
OpenMSPDBSyncListener
getDBDataForAdd
in class OpenMSPDBSyncListener
OpenMSPException
protected java.lang.String[] getDBDataForReplace(java.lang.String pdaUID) throws OpenMSPException
OpenMSPDBSyncListener
getDBDataForReplace
in class OpenMSPDBSyncListener
OpenMSPException
protected java.lang.String getSynchroTarget()
OpenMSPDBSyncListener
getSynchroTarget
in class OpenMSPDBSyncListener
public java.lang.String getSyncName()
OpenMSPSyncListener
protected Credential getSyncroCredential()
OpenMSPDBSyncListener
getSyncroCredential
in class OpenMSPDBSyncListener
protected ImportQueryManager getImportQueryManager()
OpenMSPDBSyncListener
getImportQueryManager
in class OpenMSPDBSyncListener
protected JournalLogRenderer getJournalLogRenderer()
getJournalLogRenderer
in class DefaultOpenMSPSyncListener
public void startSync(Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException
startSync
in interface OpenMSPSyncListener
startSync
in class OpenMSPDBSyncListener
OpenMSPException
public void endSync() throws OpenMSPException
endSync
in interface OpenMSPSyncListener
endSync
in class DefaultOpenMSPSyncListener
OpenMSPException
public void notifySyncDataDone(java.lang.String pdaID, int actionType) throws OpenMSPException
notifySyncDataDone
in class OpenMSPDBSyncListener
pdaID
- : Id of the object updated on the server side.actionType
- ActionDB modification type
OpenMSPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |