Returns the result of the last SYNCHRONIZE SQL statement.
SyncResult Connection.getSyncResult()
The SyncResult object representing the result of the last SYNCHRONIZE SQL statement.
The following example illustrates how to get the result of the last SYNCHRONIZE SQL statement:
PreparedStatement ps = conn.prepareStatement("SYNCHRONIZE PROFILE myprofile"); ps.execute(); ps.close(); SyncResult result = conn.getSyncResult(); display( "*** Synchronized *** sent=" + result.getSentRowCount() + ", received=" + result.getReceivedRowCount() );
This method does not return the result of the last call to the Connection.synchronize method. To obtain the SyncResult object for the last Connection.synchronize(SyncParms) method call, use the getSyncResult method on the SyncParms object passed in.