Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in August and this forum will be retired.

What is the best way to stop the execution of a synchronization?

I'm using ultraliteJ version 12.0.1 last ebf.


asked 29 May '12, 12:24

Renato's gravatar image

accept rate: 0%

You can return true from a SyncObserver to cancel the sync.

See for an example SyncObserver.

permanent link

answered 29 May '12, 12:31

Bill%20Somers's gravatar image

Bill Somers
accept rate: 40%

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 29 May '12, 12:24

question was seen: 2,857 times

last updated: 31 May '12, 10:49