Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June 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.

tks

asked 29 May '12, 12:24

Renato's gravatar image

Renato
2266614
accept rate: 0%


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.

permanent link

answered 29 May '12, 12:31

Bill%20Somers's gravatar image

Bill Somers
1.2k820
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×84
×79
×72

question asked: 29 May '12, 12:24

question was seen: 2,803 times

last updated: 31 May '12, 10:49