Synchronization is a key feature of many UltraLite applications. This section describes how to add synchronization to your application.
Members of the structures in the embedded SQL API are similar to the UltraLite C++ API.
The synchronization logic that keeps UltraLite applications up to date with the consolidated database is not held in the application itself. Synchronization scripts stored in the consolidated database, together with the MobiLink server and the UltraLite runtime library, control how changes are processed when they are uploaded and determines which changes are to be downloaded.
The specifics of each synchronization are controlled by a set of synchronization parameters. These parameters are gathered into a structure, which is then supplied as an argument in a method call to synchronize. The outline of the method is the same in each development model.
The following procedure is generally used to add synchronization to your application:
Initialize the structure that holds the synchronization parameters.
Assign the parameter values for your application.
Call the synchronization method, supplying the structure or object as argument.
Ensure that there are no uncommitted changes when you synchronize.
Synchronization parameter initialization
Committed changes and synchronization
Initial data for your application
Synchronization communications errors
Synchronization monitoring and canceling
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|