|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget
Title: OpenMobileIS project source
Description:
Constructor Summary | |
TestFODBSyncTarget()
|
Method Summary | |
void |
connect(Credential cred)
call at the beginning of the collection synchronisation. |
void |
deleteCollectionObject(java.lang.String id)
Implement the delete part of the database. |
void |
disconnect()
call at the end of the collection synchronisation. |
Array |
getAllCollectionObject()
It's call when a complete synchronisation is done to fill the terminal database with all object. |
SynchroAtomicObject[] |
getAllModifiedAtomicObjectSince(long syncnumber)
Return all atomic object uid modified since specified syncnumber. |
java.lang.String |
getCollectionName()
|
java.lang.Object |
getCollectionObjectWithId(java.lang.String id)
It is use by the synchro service to get an object from the database when it has to be updated on the terminal. |
SynchroConflicResolver |
getConflicResolver()
When a conflic is detected, the synchro service use this conflic resolver to determine the action to do. |
int |
getUpdateMaxNbRow()
Return the max number of row that update file can contains If more than max row must be updated on the PDA, a complete synchronisation will be started, the database file will be send. |
void |
setSendSynchroMetaData(java.lang.Object metadata)
Synchro meta data added to the synchro on the terminal side are given be the synchro process. |
void |
updateCollectionObject(java.lang.Object obj)
Implement the update part of the database. |
void |
updateSynchroDB(FastObjectDB db)
call by synchronisation service during complete synchronisation to update the generated db collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestFODBSyncTarget()
Method Detail |
public java.lang.String getCollectionName()
getCollectionName
in interface FODBSyncTarget
public void setSendSynchroMetaData(java.lang.Object metadata) throws OpenMSPException
FODBSyncTarget
setSendSynchroMetaData
in interface FODBSyncTarget
metadata
-
OpenMSPException
public java.lang.Object getCollectionObjectWithId(java.lang.String id) throws OpenMSPException
FODBSyncTarget
getCollectionObjectWithId
in interface FODBSyncTarget
OpenMSPException
public Array getAllCollectionObject() throws OpenMSPException
FODBSyncTarget
getAllCollectionObject
in interface FODBSyncTarget
OpenMSPException
- : throws when there is a problem to invalidate the synchronisation. The synchro collection will be in error in the terminal synchro journal.public void updateCollectionObject(java.lang.Object obj) throws OpenMSPException
FODBSyncTarget
updateCollectionObject
in interface FODBSyncTarget
obj
- is the instance of the modified object.
OpenMSPException
- : throws when there is a database update problem. The synchro collection will be in error in the terminal synchro journal.
The object will come back in the next synchronisation.public void deleteCollectionObject(java.lang.String id) throws OpenMSPException
FODBSyncTarget
deleteCollectionObject
in interface FODBSyncTarget
id
- is the identifiant of the deleted object.
OpenMSPException
- :throws when there is a database delete problem. The synchro collection will be in error in the terminal synchro journal.
The id will come back in the next synchronisation.public SynchroConflicResolver getConflicResolver()
FODBSyncTarget
getConflicResolver
in interface FODBSyncTarget
AlwaysUpdateClientSynchroConflicResolver
,
AlwaysUpdateServerSynchroConflicResolver
public SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber) throws OpenMSPException
FODBSyncTarget
getAllModifiedAtomicObjectSince
in interface FODBSyncTarget
OpenMSPException
public int getUpdateMaxNbRow()
FODBSyncTarget
getUpdateMaxNbRow
in interface FODBSyncTarget
public void updateSynchroDB(FastObjectDB db) throws OpenMSPException
FODBSyncTarget
updateSynchroDB
in interface FODBSyncTarget
db
- the database collection (thedb contains only the synchronized collection).
OpenMSPException
public void connect(Credential cred) throws UserNotFoundException, ServiceException
FODBSyncTarget
connect
in interface FODBSyncTarget
cred
- : synchronisation credential
UserNotFoundException
ServiceException
public void disconnect()
FODBSyncTarget
disconnect
in interface FODBSyncTarget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |