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

 

getVersion method

Syntax
public java.lang.String getVersion( )
Remarks

Returns the script version string.

Returns

The script version string.

See also
Example

The following example shows you how to get the script version and use it to make decisions.

Note

This example assumes you have a DBConnectionContext instance called _cc.

// A method that uses the script version
public void handleEvent() {
    // ...

    String version = _cc.getVersion();
    if (version.equals("My Version 1")) {
        // ...
    } else if (version.equals("My Version 2")) {
        // ...
    }
}

// ...