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 » UploadedTableData interface

getUpdates method Next Page

getName method


Syntax

public java.lang.String getName( )

Remarks

Returns the table name for the UploadedTableData instance. You can also access the table name using the java.sql.ResultSetMetaData instance returned by the getMetaData method.

Returns

The table name for the UploadedTableData instance.

See also
Example

The following example obtains the name of each uploaded table in a single upload transaction.

import ianywhere.ml.script.*;
import java.sql.*;

// ...

// The method used for the handle_UploadData event.

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

  for( i=0; i<tables.length; i+=1 ) {

    // Get the table name.
    String table_name = tables[i].getName();

    // ...
  }
}