Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.synchro.algo.replication.DefaultSynchroAtomicObject Class Reference

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

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

Detailed Description

Title: OpenMobileIS project source
Description: Implements default Atomic Object behaviours.

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

Definition at line 38 of file DefaultSynchroAtomicObject.java.

Public Member Functions

 DefaultSynchroAtomicObject (String id, String sum, long syncnumber, short type, long creationdate)
 DefaultSynchroAtomicObject (String id, String sum)
long getCreationDate ()
 return the atomic Object creation date.
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 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)
 set the last modification type (ADD, REPLACE, DELETE).
boolean equals (Object obj)
int hashCode ()

Static Package Attributes

static final long serialVersionUID = 5521257935120563452L


Member Function Documentation

String org.openmobileis.synchro.algo.replication.DefaultSynchroAtomicObject.getCheckSum  ) 
 

return the checksum of the atomic Object.

If checksum has changed, the object is synchronized.

Implements org.openmobileis.synchro.algo.replication.SynchroAtomicObject.

Definition at line 70 of file DefaultSynchroAtomicObject.java.

long org.openmobileis.synchro.algo.replication.DefaultSynchroAtomicObject.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.

Implements org.openmobileis.synchro.algo.replication.SynchroAtomicObject.

Definition at line 77 of file DefaultSynchroAtomicObject.java.

String org.openmobileis.synchro.algo.replication.DefaultSynchroAtomicObject.getUID  ) 
 

return the Atomic Object UID.

All synchronizeb object must have an unique UID.

Implements org.openmobileis.synchro.algo.replication.SynchroAtomicObject.

Definition at line 66 of file DefaultSynchroAtomicObject.java.

void org.openmobileis.synchro.algo.replication.DefaultSynchroAtomicObject.setCheckSum String  sum  ) 
 

set the checksum of the atomic Object.

If checksum has changed, the object is synchronized.

Implements org.openmobileis.synchro.algo.replication.SynchroAtomicObject.

Definition at line 73 of file DefaultSynchroAtomicObject.java.

void org.openmobileis.synchro.algo.replication.DefaultSynchroAtomicObject.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.

Implements org.openmobileis.synchro.algo.replication.SynchroAtomicObject.

Definition at line 80 of file DefaultSynchroAtomicObject.java.

Referenced by org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.processCommand().


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:39 2005 for OpenMobileIS by  doxygen 1.4.4