UltraLite User's Guide
Developing UltraLite Applications
Adding synchronization to your application
The synchronization parameters are stored in a C/C++ structure or Java object.
In C/C++ the members of the structure may not be well-defined on initialization. You must set your parameters to their initial values with a call to a special function. The synchronization parameters are defined in a structure declared in the UltraLite header file ulglobal.h.
For a complete list of synchronization parameters, see Synchronization parameters.
To initialize the synchronization parameters (embedded SQL)
Call the ULInitSynchInfo function. For example:
auto ul_synch_info synch_info; ULInitSynchInfo( &synch_info );
To initialize the synchronization parameters (C++ API)
Call the InitSynchInfo() method on the Connection object. For example:
auto ul_synch_info synch_info; conn.InitSynchInfo( &synch_info );
To initialize the synchronization parameters (Java)
Create a UlSynchOptions object. For example:
UlSynchOptions synch_options = new UlSynchOptions();
Once the structure or object is initialized, you must set the values to meet your particular requirements.
For information on the individual parameters, see Synchronization stream parameters.