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

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

org.openmobileis.common.util.OpenMISSerializable org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject org.openmobileis.synchro.openmsp.server.synctarget.SyncDBSynchroAtomicObject List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: Base interface to identify Atomic Object.

All object managed by the synchronisation procesus are Atomic Object. To be synchronised Object must implements this interface..

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

Definition at line 42 of file SynchroAtomicObject.java.

Public Member Functions

String getUID ()
 return the Atomic Object UID.
String getCheckSum ()
 return the checksum of the atomic Object.
void setCheckSum (String sum)
 set the checksum of the atomic Object.
long getCreationDate ()
 return the atomic Object creation date.
long getModifSyncNumber ()
 return the sync number of the last modification.
void setModifSyncNumber (long ts)
 set the synchro number of the last modification.
short getModificationType ()
 return the last modification type (ADD, REPLACE, DELETE).
void setModificationType (short type) throws DatabaseException
 Update the sync number with last synchro number.

Static Public Attributes

static final long serialVersionUID = 5521257935120563452L
static final short ADD = 1
static final short REPLACE = 2
static final short DELETE = 3


Member Function Documentation

String org.openmobileis.synchro.algo.replication.SynchroAtomicObject.getUID (  ) 

return the Atomic Object UID.

All synchronizeb object must have an unique UID.

Implemented in org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.

Referenced by org.openmobileis.synchro.algo.replication.AtomicObjectArrayReplication.replicates(), org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.resolveAddandPresent(), org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver.resolveAddandPresent(), org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.resolveDeleteandModified(), org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver.resolveDeleteandModified(), org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.resolveReplaceandDeleted(), org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver.resolveReplaceandDeleted(), org.openmobileis.synchro.algo.replication.AlwaysUpdateServerSynchroConflicResolver.resolveReplaceandModified(), and org.openmobileis.synchro.algo.replication.AlwaysUpdateClientSynchroConflicResolver.resolveReplaceandModified().

String org.openmobileis.synchro.algo.replication.SynchroAtomicObject.getCheckSum (  ) 

return the checksum of the atomic Object.

If checksum has changed, the object is synchronized.

Implemented in org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.

void org.openmobileis.synchro.algo.replication.SynchroAtomicObject.setCheckSum ( String  sum  ) 

set the checksum of the atomic Object.

If checksum has changed, the object is synchronized.

Implemented in org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.

long org.openmobileis.synchro.algo.replication.SynchroAtomicObject.getModifSyncNumber (  ) 

return the sync number of the last modification.

sync number can be anything that identifie the modification to manage synchronization. It can be a timestamp or any incremental number.

Implemented in org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.

void org.openmobileis.synchro.algo.replication.SynchroAtomicObject.setModifSyncNumber ( long  ts  ) 

set the synchro number of the last modification.

sync number can be anything that identifie the modification to manage synchronization. It can be a timestamp or any incremental number.

Implemented in org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.

void org.openmobileis.synchro.algo.replication.SynchroAtomicObject.setModificationType ( short  type  )  throws DatabaseException

Update the sync number with last synchro number.

Update modification type. set the modification type (ADD, REPLACE, DELETE).

Implemented in org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getAllModifiedAtomicObjectSince().


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