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

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ管理 » Mobile Link サーバ API » Java による同期スクリプトの作成 » Java 用 Mobile Link サーバ API リファレンス » DBConnectionContext インタフェース

 

getVersion メソッド

構文
public java.lang.String getVersion( )
備考

スクリプト・バージョン文字列を返します。

戻り値

スクリプト・バージョン文字列

参照

次の例は、スクリプト・バージョンを取得して、決定を行うために使用する方法を示します。

注意

この例は、_cc という DBConnectionContext インスタンスがあることを前提としています。

// 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")) {
        // ...
    }
}

// ...