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 Server APIs » Writing synchronization scripts in Java » MobiLink server API for Java reference


InOutInteger interface


Passed into methods to enable the functionality of an in/out parameter passed to a SQL script.


All members of, including all inherited members.


The following call to a MobiLink system procedure registers a Java method called handleError as the script for the handle_error connection event when synchronizing the script version ver1.

CALL ml_add_java_connection_script(

The following is the sample Java method handleError. It processes an error based on the data that is passed in. It also determines the resulting error code.

public String handleError( actionCode,
    int errorCode,
    String errorMessage,
    String user,
    String table)

    int new_ac;
    if (user == null) {
        new_ac = handleNonSyncError(errorCode, errorMessage);
    } else if (table == null) {
        new_ac = handleConnectionError(errorCode, errorMessage, user);
    else {
        new_ac = handleTableError(errorCode, errorMessage, user, table); 

    // Keep the most serious action code.
    if (actionCode.getValue() < new_ac) {

getValue method
setValue method