code: private void updateResultSetCurrentLine(ResultSet rs, QueryParameters params) throws SQLException {
          Object value = null;
          Object prevValue = null;
  
          int columnIndex = -1;
          boolean readOnly = false;
          QueryParameters prevParams = get(this.currentIndex);
          ResultSetMetaData rsmd = rs.getMetaData();
  
          QueryParameters processedParams = typeHandler.processInput(stmt, params);
  
          for (String parameterName : processedParams.keySet()) {
              value = processedParams.getValue(parameterName);
              prevValue = prevParams.getValue(parameterName);
  
              // no need to update value if it is the same
              if (value == prevValue || (value != null && prevValue != null && value.equals(prevValue) == true)) {
                  continue;
              }
  
              columnIndex = rs.findColumn(parameterName);
              readOnly = rsmd.isReadOnly(columnIndex) || rsmd.isAutoIncrement(columnIndex);
  
              if (readOnly == false) {
                  rs.updateObject(parameterName, value);
              }
          }
      }
docs: Updates ResultSet current row. Input value is handled by {@link TypeHandler}
  
  @param rs     ResultSet which would be updated
  @param params values which would be used to update current row
  @throws SQLException