Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Deutsch) » MobiLink - Serveradministration » MobiLink-Server-APIs » Synchronisationsskripten in Java erstellen » Referenz der MobiLink-Server-API für Java » DownloadTableData-Schnittstelle

 

getName-Methode

Syntax
public java.lang.String getName( )
Bemerkungen

Gibt den Tabellennamen für die DownloadTableData-Instanz zurück. Sie können den Tabellennamen auch mit der Instanz java.sql.ResultSetMetaData aufrufen, die von der Methode DownloadTableData.getMetaData zurückgegeben wird.

Rückgabe

Der Tabellenname für die DownloadTableData-Instanz.

Siehe auch
Beispiel

Das folgende Beispiel zeigt, wie Sie den Tabellennamen für die DownloadTableData-Instanz ausgeben.

Hinweis

Bei diesem Beispiel wird vorausgesetzt, dass eine DBConnectionContext-Instanz namens _cc vorhanden ist.

// 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); 

    // ... 
}