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 » DownloadData-Schnittstelle

 

getDownloadTableByName-Methode

Syntax
public DownloadTableData getDownloadTableByName(
string table_name);
Bemerkungen

Ruft die genannte Downloadtabelle für diese Synchronisation ab. Wenn keine Tabelle mit diesem Namen in dieser Synchronisation existiert, wird NULL zurückgegeben.

Parameter
  • table_name   Der Name der Tabelle, deren Daten Sie herunterladen möchten.

Rückgabe

Eine DownloadTableData-Instanz, die die angegebene Tabelle darstellt, oder Null, wenn keine Tabelle mit dem angegebenen Namen für die aktuelle Synchronisation vorhanden ist.

Siehe auch
Beispiel

Im folgenden Beispiel wird mit der Methode DownloadTableByName eine DownloadTableData-Instanz für die remoteOrders-Tabelle zurückgegeben.

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 my_download_table = my_dd.getDownloadTableByName("remoteOrders");
 
    // ... 
}