public java.lang.String getRemoteID( )
返回当前正在此连接上同步的数据库的远程 ID。如果远程数据库早于版本 10,则将返回 MobiLink 用户名。
远程 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); } |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |