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 - 服务器管理 » MobiLink 服务器 API » 使用 Java 语言编写同步脚本 » 用于 Java 的 MobiLink 服务器 API 参考 » DownloadTableData 接口

 

getName 方法

语法
public java.lang.String getName( )
注释

返回 DownloadTableData 实例的表名。您也可以使用由 DownloadTableData.getMetaData 方法返回的 java.sql.ResultSetMetaData 实例来访问表名。

返回值

DownloadTableData 实例的表名。

另请参见
示例

以下示例显示如何输出 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 td = my_dd.getDownloadTableByName("remoteOrders");

    // Print the table name to standard output (remoteOrders)
    System.out.println(td.getName());

    // User defined-methods to set download operations.
    setDownloadInserts(td);
    setDownloadDeletes(td); 

    // ... 
}