You can return true from a SyncObserver to cancel the sync. See http://dcx.sybase.com/index.html#1201/en/ulj/ulj-api-syncobserver-int.html for an example SyncObserver. If the 'SyncObserver' returns true, a rollback will be executed on the db?
(29 May '12, 13:01)
Renato
Replies hidden
Basically. If you have restartable downloads turned off (which is the default), then whatever partial download got received is rolled back. If restartable downloads are turned on, then there is a commit to store any partial download, though I don't think the incomplete download is visible in any way to your application. UltraLite will keep the database in a consistent state even if the sync fails or is canceled.
(29 May '12, 14:57)
Bill Somers
With restartable downloads, a partial download is not committed. For UltraLite (including UltraLiteJ for Android) it is up to your application to resume the download or roll back the partial download. For details, see the documentation.
(31 May '12, 10:49)
Graham Hurst
|