org.openmobileis.test.database
Class TestSynchroFODBReturnListener

java.lang.Object
  extended byorg.openmobileis.test.database.TestSynchroFODBReturnListener
All Implemented Interfaces:
SynchroFODBReturnListener

public final class TestSynchroFODBReturnListener
extends java.lang.Object
implements SynchroFODBReturnListener


Field Summary
 boolean notifyBeginDBUpdateCall
           
 java.lang.String notifyDBDeleteId
           
 java.lang.String notifyFODBObjectSynchroDoneId
           
 boolean notifySynchroBeginCall
           
 boolean notifySynchroEndCall
           
 java.io.Serializable testMetadata
           
 
Constructor Summary
TestSynchroFODBReturnListener()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testMetadata

public java.io.Serializable testMetadata

notifyBeginDBUpdateCall

public boolean notifyBeginDBUpdateCall

notifyDBDeleteId

public java.lang.String notifyDBDeleteId

notifyFODBObjectSynchroDoneId

public java.lang.String notifyFODBObjectSynchroDoneId

notifySynchroBeginCall

public boolean notifySynchroBeginCall

notifySynchroEndCall

public boolean notifySynchroEndCall
Constructor Detail

TestSynchroFODBReturnListener

public TestSynchroFODBReturnListener()
Method Detail

getSendSynchroMetada

public java.io.Serializable getSendSynchroMetada()
                                          throws OpenMSPException
Description copied from interface: SynchroFODBReturnListener
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.

Specified by:
getSendSynchroMetada in interface SynchroFODBReturnListener
Returns:
Throws:
OpenMSPException

notifyBeginDBUpdate

public java.lang.Object notifyBeginDBUpdate(java.lang.Object object)
                                     throws OpenMSPException
Description copied from interface: SynchroFODBReturnListener
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.

Specified by:
notifyBeginDBUpdate in interface SynchroFODBReturnListener
Parameters:
object -
Returns:
null or the modified object to be store in the database.
Throws:
OpenMSPException

notifyDBDelete

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

Specified by:
notifyDBDelete in interface SynchroFODBReturnListener
Parameters:
objectId -
Throws:
OpenMSPException

notifyFODBObjectSynchroDone

public void notifyFODBObjectSynchroDone(java.lang.String ObjectId)
                                 throws OpenMSPException
Description copied from interface: SynchroFODBReturnListener
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.

Specified by:
notifyFODBObjectSynchroDone in interface SynchroFODBReturnListener
Parameters:
ObjectId -
Throws:
OpenMSPException

notifySynchroBegin

public void notifySynchroBegin()
Description copied from interface: SynchroFODBReturnListener
Call when synchro begin

Specified by:
notifySynchroBegin in interface SynchroFODBReturnListener

notifySynchroEnd

public void notifySynchroEnd()
Description copied from interface: SynchroFODBReturnListener
Call when synchro end

Specified by:
notifySynchroEnd in interface SynchroFODBReturnListener


Copyright 2006 OpenMobileIS. All Rights Reserved.