Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
この接続のバージョン文字列を返します。
String DBConnectionContext.getVersion()
スクリプトバージョン。
詳細については、ml_add_property システムプロシージャを参照してください。
次の例は、スクリプトバージョンを取得して、その値に基づいて決定を行う方法を示します。この例は、_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")) { // ... } } // ...