org.openmobileis.synchro.algo.replication
Class AlwaysUpdateServerSynchroConflicResolver

java.lang.Object
  extended byorg.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver
All Implemented Interfaces:
SynchroConflicResolver

public final class AlwaysUpdateServerSynchroConflicResolver
extends java.lang.Object
implements SynchroConflicResolver

Title: OpenMobileIS project source
Description:

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

Field Summary
 
Fields inherited from interface org.openmobileis.synchro.algo.replication.SynchroConflicResolver
CREATE_NEW_OBJECT, DO_NOTHING, RETURN_ERROR_CONFLIC, UPDATE_PDA, UPDATE_SERVER
 
Constructor Summary
AlwaysUpdateServerSynchroConflicResolver()
          Constructor for SSynchroConflicResolver.
 
Method Summary
 ReplicationSAOEvent resolveAddandPresent(SynchroAtomicObject ao)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysUpdateServerSynchroConflicResolver

public AlwaysUpdateServerSynchroConflicResolver()
Constructor for SSynchroConflicResolver.

Method Detail

resolveAddandPresent

public ReplicationSAOEvent resolveAddandPresent(SynchroAtomicObject ao)
Description copied from interface: SynchroConflicResolver
resolve the synchro conflic when an add command is send by the pda when the same object is already in database.

Specified by:
resolveAddandPresent in interface SynchroConflicResolver
Returns:
the ReplicationSAOEvent that correspond to the action to be done.
See Also:
org.openmobileis.server.synchro.safeserver.synchronization.SynchroConflicResolver#resolveAddandPresent(SynchroAtomicObject)

resolveReplaceandModified

public ReplicationSAOEvent resolveReplaceandModified(SynchroAtomicObject ao)
Description copied from interface: SynchroConflicResolver
resolve the synchro conflic when a replace command is send by the pda when the same object has been modified in database.

Specified by:
resolveReplaceandModified in interface SynchroConflicResolver
Returns:
the ReplicationSAOEvent that correspond to the action to be done.
See Also:
org.openmobileis.server.synchro.safeserver.synchronization.SynchroConflicResolver#resolveReplaceandModified(SynchroAtomicObject)

resolveReplaceandDeleted

public ReplicationSAOEvent resolveReplaceandDeleted(SynchroAtomicObject ao)
Description copied from interface: SynchroConflicResolver
resolve the synchro conflic when a replace command is send by the pda when the same object has been deleted in database.

Specified by:
resolveReplaceandDeleted in interface SynchroConflicResolver
Returns:
the ReplicationSAOEvent that correspond to the action to be done.
See Also:
org.openmobileis.server.synchro.safeserver.synchronization.SynchroConflicResolver#resolveReplaceandDeleted(SynchroAtomicObject)

resolveDeleteandModified

public ReplicationSAOEvent resolveDeleteandModified(SynchroAtomicObject ao)
Description copied from interface: SynchroConflicResolver
resolve the synchro conflic when a delete command is send by the pda when the same object has been modified in database.

Specified by:
resolveDeleteandModified in interface SynchroConflicResolver
Returns:
the ReplicationSAOEvent that correspond to the action to be done.
See Also:
org.openmobileis.server.synchro.safeserver.synchronization.SynchroConflicResolver#resolveDeleteandModified(SynchroAtomicObject)


Copyright 2006 OpenMobileIS. All Rights Reserved.