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

 

getDownloadTables-Methode

Syntax
public DownloadTableData[ ] getDownloadTables( )
Bemerkungen

Ermittelt ein Array für alle Download-Datentabellen in dieser Synchronisation. Die in dieser Tabelle durchgeführten Vorgänge werden an die entfernte Datenbank gesendet.

Rückgabe

Ein Array von DownloadTableData-Objekten für die aktuelle Synchronisation. Die Reihenfolge der Tabellen im Array ist die gleiche wie die entfernte Upload-Reihenfolge.

Siehe auch
Beispiel

Im nachfolgenden Beispiel wird mit der Methode DownloadData.getDownloadTables ein Array von DownloadTableData-Objekten für die aktuelle Synchronisation abgerufen. 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 an array of tables to set download operations.
    DownloadTableData[] download_tables = my_dd.getDownloadTables();

    // Get the first table in the DownloadTableData array.
    DownloadTableData my_download_table = download_tables[0];
  
    // ...
}