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

SQL Anywhere 10.0.1 » MobiLink - Server Administration » Writing Synchronization Scripts in Java » MobiLink server API for Java Reference » UploadData interface

getUploadedTableByName method Next Page

getUploadedTables method


Syntax

public UploadedTableData[] getUploadedTables( )

Remarks

Returns an array of UploadedTableData objects for the current synchronization. The order to the tables in the array is the same order that MobiLink uses for SQL row handling, and is the optimal order for preventing referential integrity violations. If your data source is a relational database, use this table order.

Returns

An array of UploadedTableData objects for the current synchronization. The order of tables in the array is the same as the upload order of the client.

See also
Example

Assume you use a method called HandleUpload for the handle_UploadData synchronization event. The following example uses the getUploadedTables method to return UploadedTableData instances for the current upload transaction.

// The method used for the handle_UploadData event.

public void HandleUpload( UploadData ud ) {
  throws SQLException, IOException {
 
  UploadedTableData tables[] = ud.getUploadedTables();

  //...
}