|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.test.database.TestDummyFODBSyncTarget
Field Summary | |
boolean |
connectCall
|
SynchroAtomicObject |
currentAO
|
java.lang.String |
deleteCollectionObjectId
|
boolean |
disconnectCall
|
java.lang.Object |
synchroMetaData
|
java.lang.Object |
updateCollectionObject
|
int |
updateMaxNbRow
|
boolean |
updateSynchroDBCall
|
Constructor Summary | |
TestDummyFODBSyncTarget()
|
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 |
Field Detail |
public boolean connectCall
public java.lang.String deleteCollectionObjectId
public boolean disconnectCall
public SynchroAtomicObject currentAO
public int updateMaxNbRow
public java.lang.Object synchroMetaData
public java.lang.Object updateCollectionObject
public boolean updateSynchroDBCall
Constructor Detail |
public TestDummyFODBSyncTarget()
Method Detail |
public void connect(Credential cred) throws UserNotFoundException, ServiceException
FODBSyncTarget
connect
in interface FODBSyncTarget
cred
- : synchronisation credential
UserNotFoundException
ServiceException
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 void disconnect()
FODBSyncTarget
disconnect
in interface FODBSyncTarget
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 SynchroAtomicObject[] getAllModifiedAtomicObjectSince(long syncnumber) throws OpenMSPException
FODBSyncTarget
getAllModifiedAtomicObjectSince
in interface FODBSyncTarget
OpenMSPException
public java.lang.String getCollectionName()
getCollectionName
in interface FODBSyncTarget
public java.lang.Object getCollectionObjectWithId(java.lang.String id) throws OpenMSPException
FODBSyncTarget
getCollectionObjectWithId
in interface FODBSyncTarget
OpenMSPException
public SynchroConflicResolver getConflicResolver()
FODBSyncTarget
getConflicResolver
in interface FODBSyncTarget
AlwaysUpdateClientSynchroConflicResolver
,
AlwaysUpdateServerSynchroConflicResolver
public int getUpdateMaxNbRow()
FODBSyncTarget
getUpdateMaxNbRow
in interface FODBSyncTarget
public void setSendSynchroMetaData(java.lang.Object metadata) throws OpenMSPException
FODBSyncTarget
setSendSynchroMetaData
in interface FODBSyncTarget
metadata
-
OpenMSPException
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 updateSynchroDB(FastObjectDB db) throws OpenMSPException
FODBSyncTarget
updateSynchroDB
in interface FODBSyncTarget
db
- the database collection (thedb contains only the synchronized collection).
OpenMSPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |