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"); // ... } |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |