org.openmobileis.synchro.algo.replication
Class AtomicObjectArrayReplication

java.lang.Object
  extended byorg.openmobileis.synchro.algo.replication.AtomicObjectArrayReplication
All Implemented Interfaces:
Orderable

public class AtomicObjectArrayReplication
extends java.lang.Object
implements Orderable

Title: OpenMobileIS project source
Description:

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

Field Summary
protected  SynchroConflicResolver conflicResolver
           
 
Constructor Summary
AtomicObjectArrayReplication(SynchroConflicResolver conflicResolver)
           
 
Method Summary
 int compareTo(java.lang.Object AO1, java.lang.Object AO2)
          Compare two objects and order them.
 ReplicationReturnData replicates(SynchroAtomicObject[] listAOClient, SynchroAtomicObject[] listAOServ)
          Compare client and server SynchroAtomicObject list and return all event associated to manage client or server update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conflicResolver

protected SynchroConflicResolver conflicResolver
Constructor Detail

AtomicObjectArrayReplication

public AtomicObjectArrayReplication(SynchroConflicResolver conflicResolver)
Method Detail

replicates

public ReplicationReturnData replicates(SynchroAtomicObject[] listAOClient,
                                        SynchroAtomicObject[] listAOServ)
                                 throws SynchroException
Compare client and server SynchroAtomicObject list and return all event associated to manage client or server update.

Throws:
SynchroException

compareTo

public int compareTo(java.lang.Object AO1,
                     java.lang.Object AO2)
Description copied from interface: Orderable
Compare two objects and order them.

Specified by:
compareTo in interface Orderable
Parameters:
AO1 - first object
AO2 - second object
Returns:
< 0 if p1 < p2, 0 if equal, > 0 if p1 > p2


Copyright 2006 OpenMobileIS. All Rights Reserved.