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

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ管理 » Mobile Link サーバ API » Java による同期スクリプトの作成 » Java 用 Mobile Link サーバ API リファレンス » DownloadData インタフェース

 

getDownloadTableByName メソッド

構文
public DownloadTableData getDownloadTableByName(
string table-name);
備考

現在の同期に使用する名前付きダウンロード・テーブルを取得します。指定された名前のテーブルが現在の同期にない場合は NULL を返します。

パラメータ
  • table_name   ダウンロード・データの取得先テーブルの名前

戻り値

指定されたテーブルを表す DownloadTableData インスタンス。指定された名前のテーブルが現在の同期で存在しない場合は NULL。

参照

次の例では getDownloadTableByName メソッドを使用して、remoteOrders テーブルの DownloadTableData インスタンスを返します。

注意

この例は、_cc という DBConnectionContext インスタンスがあることを前提としています。

// 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");
 
    // ... 
}