Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
前回の SYNCHRONIZE SQL 文の結果を返します。
SyncResult Connection.getSyncResult()
前回の SYNCHRONIZE SQL 文の結果を示す SyncResult オブジェクト。
次に、前回の SYNCHRONIZE SQL 文の結果を取得する例を示します。
PreparedStatement ps = conn.prepareStatement("SYNCHRONIZE PROFILE myprofile"); ps.execute(); ps.close(); SyncResult result = conn.getSyncResult(); display( "*** Synchronized *** sent=" + result.getSentRowCount() + ", received=" + result.getReceivedRowCount() );
このメソッドでは、前回の Connection.synchronize メソッド呼び出しの結果は返されません。前回の Connection.synchronize(SyncParms) メソッド呼び出しの SyncResult オブジェクトを取得するには、渡された SyncParms オブジェクトで getSyncResult メソッドを使用します。