|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: OpenMobileIS project source
Description: For each Terminal synchronized collection you have to register a FODBSyncTarget. This target act has a database connector for the synchro service.
To specify the temp directory where generated db file (during complete synchronisation) is use the property :org.openmobileis.database.fastobjectdb.synchro.server.generateddb.installpath
Method Summary | |
void |
connect(Credential cred)
call at the beginning of the collection synchronisation. |
void |
deleteCollectionObject(java.lang.String id,
long currentSynchroNumber)
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,
long currentSynchroNumber)
Implement the update part of the database. |
void |
updateSynchroDB(FastObjectDB db)
call by synchronisation service during complete synchronisation to update the generated db collection. |
Method Detail |
public java.lang.String getCollectionName()
public void setSendSynchroMetaData(java.lang.Object metadata) throws OpenMSPException
metadata
-
OpenMSPException
public java.lang.Object getCollectionObjectWithId(java.lang.String id) throws OpenMSPException
OpenMSPException
public void updateCollectionObject(java.lang.Object obj, long currentSynchroNumber) throws OpenMSPException
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, long currentSynchroNumber) throws OpenMSPException
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()
AlwaysUpdateClientSynchroConflicResolver
,
AlwaysUpdateServerSynchroConflicResolver
public Array getAllCollectionObject() throws OpenMSPException
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
OpenMSPException
public int getUpdateMaxNbRow()
public void updateSynchroDB(FastObjectDB db) throws OpenMSPException
db
- the database collection (thedb contains only the synchronized collection).
OpenMSPException
public void connect(Credential cred) throws UserNotFoundException, ServiceException
cred
- : synchronisation credential
UserNotFoundException
ServiceException
public void disconnect()
UserNotFoundException
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |