org.openmobileis.database.fastobjectdb.synchro.client
Interface SynchroFODBReturnListener

All Known Implementing Classes:
TerminalUserSynchroFODBReturnListener, TestSynchroFODBReturnListener

public interface SynchroFODBReturnListener

Title: OpenMobileIS project source
Description:

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

Method Summary
 java.io.Serializable getSendSynchroMetada()
          return synchro meta data.
 java.lang.Object notifyBeginDBUpdate(java.lang.Object object)
          Call before a server object is written in FODB.
 void notifyDBDelete(java.lang.String objectId)
          Call after a server FODB object with objectId has been deleted in FODB.
 void notifyFODBObjectSynchroDone(java.lang.String ObjectId)
          Call when a FODB object has been synchronized from the embedded device to the server.
 void notifySynchroBegin()
          Call when synchro begin
 void notifySynchroEnd()
          Call when synchro end
 

Method Detail

getSendSynchroMetada

public java.io.Serializable getSendSynchroMetada()
                                          throws OpenMSPException
return synchro meta data. Meta data are send inside synchronisation. On the server meta data are transfered to the synchro target with the SynchroTarget method setSendSynchroMetaData(Object metadata) Meta data can be use to transfert a context with the synchronisation.

Returns:
Throws:
OpenMSPException

notifyBeginDBUpdate

public java.lang.Object notifyBeginDBUpdate(java.lang.Object object)
                                     throws OpenMSPException
Call before a server object is written in FODB. Only call during row synchronisation. If the synchronized object has to be modified before database write, modify it and return it. Null otherwise.

Parameters:
object -
Returns:
null or the modified object to be store in the database.
Throws:
DatabaseException
OpenMSPException

notifyDBDelete

public void notifyDBDelete(java.lang.String objectId)
                    throws OpenMSPException
Call after a server FODB object with objectId has been deleted in FODB. Only call during row synchronisation.

Parameters:
objectId -
Throws:
DatabaseException
OpenMSPException

notifySynchroBegin

public void notifySynchroBegin()
Call when synchro begin


notifySynchroEnd

public void notifySynchroEnd()
Call when synchro end


notifyFODBObjectSynchroDone

public void notifyFODBObjectSynchroDone(java.lang.String ObjectId)
                                 throws OpenMSPException
Call when a FODB object has been synchronized from the embedded device to the server. The ObjectId of the collection unique index type. ObjectId are evaluated using the collection unique index. If it's a String index, by default string index are not case sentitive. So with default String index ObjectId will be in upper case. To avoid this behaviour, the collection unique index descriptor must be declared case sensitive.

Parameters:
ObjectId -
Throws:
OpenMSPException


Copyright 2006 OpenMobileIS. All Rights Reserved.