Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in Java » MobiLink server API for Java reference

 

DownloadData interface

Syntax
public ianywhere.ml.script.DownloadData
Remarks

Encapsulates download data operations for direct row handling. To obtain a DownloadData instance, use the DBConnectionContext getDownloadData method.

Use the DownloadData.getDownloadTables and getDownloadTableByName methods to return DownloadTableData instances.

This download data is available through DBConnectionContext. It is not valid to access the download data before the begin_synchronization event or after the end_download event. It is not valid to access DownloadData in an upload-only synchronization.

See also
Members

All members of ianywhere.ml.script.DownloadData, including all inherited members.

Example

The following example shows you how to obtain a DownloadData instance for the current synchronization using the DBConnectionContext getDownloadData method.

DBConnectionContext _cc;

// Your class constructor.
public OrderProcessor(DBConnectionContext cc) {
    _cc = cc;
}

// The method used for the handle_DownloadData event.
public void handleDownload() throws SQLException {
    // Get the DownloadData for the current synchronization.
    DownloadData my_dd = _cc.getDownloadData();
 
    // ...
}

getDownloadTableByName method
getDownloadTables method