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


getDownloadTableByName method

public DownloadTableData getDownloadTableByName(
string table-name);

Gets the named download table for this synchronization. Returns null if there is no table with the given name in this synchronization.

  • table_name   The name of the table for which you want the download data.


A DownloadTableData instance representing the specified table, or null if a table of the given name does not exist for the current synchronization.

See also

The following example uses the getDownloadTableByName method to return a DownloadTableData instance for the remoteOrders table.


This example assumes you have a DBConnectionContext instance called _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();

    // Get the DownloadTableData for the remoteOrders table.
    DownloadTableData my_download_table = my_dd.getDownloadTableByName("remoteOrders");
    // ...