org.openmobileis.synchro.algo.replication.SynchroConflicResolver Interface Reference

Inheritance diagram for org.openmobileis.synchro.algo.replication.SynchroConflicResolver:

org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: Base interface to implements to handle synchro conflicts.

Interface implementation are use as a service, so instance member must be declared. If data has to be share betwin different method call use the SessionContext.

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

Definition at line 40 of file SynchroConflicResolver.java.

Public Member Functions

ReplicationSAOEvent resolveAddandPresent (SynchroAtomicObject clientao)
 resolve the synchro conflic when an add command is send by the pda when the same object is already in database.
ReplicationSAOEvent resolveReplaceandModified (SynchroAtomicObject ao)
 resolve the synchro conflic when a replace command is send by the pda when the same object has been modified in database.
ReplicationSAOEvent resolveReplaceandDeleted (SynchroAtomicObject ao)
 resolve the synchro conflic when a replace command is send by the pda when the same object has been deleted in database.
ReplicationSAOEvent resolveDeleteandModified (SynchroAtomicObject ao)
 resolve the synchro conflic when a delete command is send by the pda when the same object has been modified in database.

Static Public Attributes

static final int RETURN_ERROR_CONFLIC = 0
static final int UPDATE_SERVER = 1
static final int UPDATE_PDA = 2
static final int CREATE_NEW_OBJECT = 3
static final int DO_NOTHING = 4


Member Function Documentation

ReplicationSAOEvent org.openmobileis.synchro.algo.replication.SynchroConflicResolver.resolveAddandPresent ( SynchroAtomicObject  clientao  ) 

resolve the synchro conflic when an add command is send by the pda when the same object is already in database.

Returns:
the ReplicationSAOEvent that correspond to the action to be done.

Implemented in org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver, and org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.

Referenced by org.openmobileis.synchro.algo.replication.AtomicObjectArrayReplication.replicates().

ReplicationSAOEvent org.openmobileis.synchro.algo.replication.SynchroConflicResolver.resolveReplaceandModified ( SynchroAtomicObject  ao  ) 

resolve the synchro conflic when a replace command is send by the pda when the same object has been modified in database.

Returns:
the ReplicationSAOEvent that correspond to the action to be done.

Implemented in org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver, and org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.

Referenced by org.openmobileis.synchro.algo.replication.AtomicObjectArrayReplication.replicates().

ReplicationSAOEvent org.openmobileis.synchro.algo.replication.SynchroConflicResolver.resolveReplaceandDeleted ( SynchroAtomicObject  ao  ) 

resolve the synchro conflic when a replace command is send by the pda when the same object has been deleted in database.

Returns:
the ReplicationSAOEvent that correspond to the action to be done.

Implemented in org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver, and org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.

Referenced by org.openmobileis.synchro.algo.replication.AtomicObjectArrayReplication.replicates().

ReplicationSAOEvent org.openmobileis.synchro.algo.replication.SynchroConflicResolver.resolveDeleteandModified ( SynchroAtomicObject  ao  ) 

resolve the synchro conflic when a delete command is send by the pda when the same object has been modified in database.

Returns:
the ReplicationSAOEvent that correspond to the action to be done.

Implemented in org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver, and org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.

Referenced by org.openmobileis.synchro.algo.replication.AtomicObjectArrayReplication.replicates().


The documentation for this interface was generated from the following file:
Generated on Mon Dec 4 11:03:41 2006 for OpenMobileIS by  doxygen 1.5.1-p1