org.openmobileis.synchro.algo.replication
Interface SynchroConflicResolver

All Known Implementing Classes:
AlwaysUpdateBothSideSynchroConflicResolver, AlwaysUpdateClientSynchroConflicResolver, AlwaysUpdateServerSynchroConflicResolver

public interface SynchroConflicResolver

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.

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

Method Summary
 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 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.
 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 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.
 

Method Detail

resolveAddandPresent

public 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.

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

resolveReplaceandModified

public 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.

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

resolveReplaceandDeleted

public 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.

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

resolveDeleteandModified

public 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.

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


Copyright 2006 OpenMobileIS. All Rights Reserved.