Definition at line 41 of file DefaultSynchroAtomicObject.java.
Public Member Functions | |
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) throws DatabaseException |
Update the sync number with last synchro number. |
String org.openmobileis.synchro.algo.replication.utils.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 74 of file DefaultSynchroAtomicObject.java.
String org.openmobileis.synchro.algo.replication.utils.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 78 of file DefaultSynchroAtomicObject.java.
void org.openmobileis.synchro.algo.replication.utils.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 81 of file DefaultSynchroAtomicObject.java.
long org.openmobileis.synchro.algo.replication.utils.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 85 of file DefaultSynchroAtomicObject.java.
void org.openmobileis.synchro.algo.replication.utils.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 88 of file DefaultSynchroAtomicObject.java.
void org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObject.setModificationType | ( | short | type | ) | throws DatabaseException |
Update the sync number with last synchro number.
Update modification type. set the modification type (ADD, REPLACE, DELETE).
Implements org.openmobileis.synchro.algo.replication.SynchroAtomicObject.
Definition at line 96 of file DefaultSynchroAtomicObject.java.