ewe.database
Class DoubleSynchronizer
java.lang.Object
ewe.database.Synchronizer
ewe.database.DoubleSynchronizer
- public class DoubleSynchronizer
- extends Synchronizer
This Synchronizes two Databases where you have full local access to both.
| Methods inherited from class ewe.database.Synchronizer |
addOrReplace, checkSort, close, erase, eraseDeleted, findByOID, getByOID, getByOID, getDisplayString, getMatchingEntry, getOID, getResolveString, getUnsynchronized, getUnsynchronized, isSynchronized, markAsSynchronized, markAsSynchronized, resolveConflict, synchronize, synchronize, synchronize |
remote
protected Database remote
DoubleSynchronizer
public DoubleSynchronizer(Database local,
Database remote)
countRemoteUnsynchronizedEntries
public int countRemoteUnsynchronizedEntries()
throws IOException
- Overrides:
countRemoteUnsynchronizedEntries in class Synchronizer
- Throws:
IOException
getRemoteUnsynchronizedEntry
public byte[] getRemoteUnsynchronizedEntry(int index)
throws IOException
- Overrides:
getRemoteUnsynchronizedEntry in class Synchronizer
- Throws:
IOException
markRemoteAsSynchronized
public void markRemoteAsSynchronized(int index)
throws IOException
- Overrides:
markRemoteAsSynchronized in class Synchronizer
- Throws:
IOException
countRemoteDeletedEntries
public int countRemoteDeletedEntries()
throws IOException
- Overrides:
countRemoteDeletedEntries in class Synchronizer
- Throws:
IOException
getRemoteDeletedEntry
public long getRemoteDeletedEntry(int index)
throws IOException
- Overrides:
getRemoteDeletedEntry in class Synchronizer
- Throws:
IOException
eraseDeletedOnRemote
public void eraseDeletedOnRemote(int index)
throws IOException
- Overrides:
eraseDeletedOnRemote in class Synchronizer
- Throws:
IOException
eraseEntryOnRemote
public void eraseEntryOnRemote(long OID)
throws IOException
- Overrides:
eraseEntryOnRemote in class Synchronizer
- Throws:
IOException
sendEntryToRemote
public void sendEntryToRemote(DatabaseEntry de)
throws IOException
- Overrides:
sendEntryToRemote in class Synchronizer
- Throws:
IOException