Contents Index ping synchronization parameter security synchronization parameter pdf/preface.pdf

UltraLite User's Guide
  UltraLite Reference
    Synchronization parameters

publication synchronization parameter


Function 

Specifies the publications to be synchronized.

Default 

If you do not specify a publication, all data is synchronized.

C/C++ usage 

The UltraLite generator identifies the publications specified on the ulgen -v command line option as upper case constants with the name UL_PUB_pubname, where pubname is the name given to the -v option. For example, the following command line generates a publication identified by the constant UL_PUB_SALES

ulgen -v sales ...

When synchronizing, set the publication parameter to a publication mask: an OR'd list of publication constants. For example:

ul_synch_info info;
// ...
info.publication = UL_PUB_MYPUB1 | UL_PUB_MYPUB2 ;

The special publication mask UL_SYNC_ALL describes all the tables in the database, whether in a publication or not. The mask UL_SYNC_ALL_PUBS describes all tables in publications in the database.

Java usage 

The UltraLite generator identifies the publications specified on the ulgen -v command line option as upper case constants with the name UL_PUB_pubname, where pubname is the name given to the -v option. These constants are fields of the generated project class. For example, the following command line generates a publication identified by the constant salesproject.UL_PUB_SALES.

ulgen -j salesproject -v sales ...

When synchronizing, use the setSynchPublication method to set the parameter to an OR'd list .

Set the parameter as follows:

UlSynchOptions opts = new UlSynchOptions;
opts.setSynchPublication(
  projectname.UL_PUB_MYPUB1 |
  projectname.UL_PUB_MYPUB2 );
// set other options here
conn.synchronize( opts );

where projectname is the name of the main project class generated by the analyzer.

See also 

The UltraLite generator

Designing sets of data to synchronize separately


Contents Index ping synchronization parameter security synchronization parameter pdf/preface.pdf