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

SQL Anywhere 11.0.0 » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in Java » MobiLink server API for Java Reference » UploadedTableData interface

 

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

    // ...
  }
}