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

SQL Anywhere 11.0.1 (Français) » MobiLink - Server Administration » MobiLink Reference » MobiLink server system procedures » MobiLink system procedures


ml_add_java_table_script system procedure

Use this system procedure to register or unregister a Java method as the script for a table event.

ml_add_java_table_script ( 




VARCHAR(128). The version name.


VARCHAR(128). table name.


VARCHAR(128). The event name.


TEXT. The script content. For Adaptive Server Enterprise, this parameter is VARCHAR(16384). For DB2 LUW, this parameter is VARCHAR(4000). For Oracle, this parameter is CLOB.


To unregister a method, set the script content parameter to null.

The script value is a public method in a class in the MobiLink server classpath (for example, MyClass.MyMethod).

When you call ml_add_java_table_script, the method is associated with the table, event, and script version that you specify. If the version name is new, it is automatically inserted into the ml_version table.

For DB2 mainframe consolidated database types, this procedure is called ml_add_jts. See IBM DB2 mainframe system procedure name conversions.

See also

The following example registers the empDownloadCursor method of the CustEmpScripts class for the download_cursor event for the table emp.

call ml_add_java_table_script( 'ver1', 'emp',
'download_cursor','CustEmpScripts.empDownloadCursor' )