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 インタフェース

 

getDownloadTables メソッド

構文
public DownloadTableData[ ] getDownloadTables( )
備考

現在の同期のダウンロード・データのすべてのテーブルを含む配列を取得します。このテーブルに対して実行された操作はリモート・データベースに送信されます。

戻り値

現在の同期の DownloadTableData オブジェクトの配列。配列内でのテーブルの順序は、リモートのアップロード順と同じです。

参照

次の例では DownloadData.getDownloadTables メソッドを使用して、現在の同期の 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 an array of tables to set download operations.
    DownloadTableData[] download_tables = my_dd.getDownloadTables();

    // Get the first table in the DownloadTableData array.
    DownloadTableData my_download_table = download_tables[0];
  
    // ...
}