public DownloadTableData getDownloadTableByName( string table-name);
为此同步获取指定的下载表。如果此同步中不存在具有指定名称的表,则会返回空值。
table_name 想要获取其下载数据的表的名称。
返回表示指定表的 DownloadTableData 实例,或者如果当前同步中不存在具有指定名称的表,则返回空值。
以下示例使用 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 |