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 リファレンス » 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); 

    // ... 
}