org.openmobileis.modules.common.database.fodb
Class TerminalUserSynchroFODBReturnListener

java.lang.Object
  extended byorg.openmobileis.modules.common.database.fodb.TerminalUserSynchroFODBReturnListener
All Implemented Interfaces:
SynchroFODBReturnListener

public class TerminalUserSynchroFODBReturnListener
extends java.lang.Object
implements SynchroFODBReturnListener

Title: OpenMobileIS project source
Description:

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

Constructor Summary
TerminalUserSynchroFODBReturnListener()
           
 
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
 

Constructor Detail

TerminalUserSynchroFODBReturnListener

public TerminalUserSynchroFODBReturnListener()
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

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

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


Copyright 2006 OpenMobileIS. All Rights Reserved.