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 インタフェース

 

getRemoteID メソッド

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

この接続で現在同期中のデータベースのリモート ID を返します。バージョン 10 以前のリモート・データベースの場合は、Mobile Link ユーザ名を返します。

戻り値

リモート ID

参照

次の例は、DBConnectionContext のリモート ID を出力する方法を示します。

注意

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

// The method used to output the remote ID.
public void outputRemoteID() {
    // output the Remote ID for the current synchronization
    String remoteID = _cc.getRemoteID();
    System.out.println(remoteID);
}