private Object stringToValue(Object oldValue,String newValue) throws ReplicatorException {
  if (oldValue instanceof String) {
    return newValue;
  }
 else   if (oldValue instanceof Integer) {
    return Integer.valueOf(newValue);
  }
 else   if (oldValue instanceof SerialBlob) {
    try {
      return DatabaseHelper.getSafeBlob(newValue.getBytes());
    }
 catch (    SQLException e) {
      throw new ReplicatorException("Unable to convert back from String to SerialBlob: " + e,e);
    }
  }
 else {
    return newValue;
  }
}

private Object stringToValue ( Object oldValue , String newValue ) throws ReplicatorException { if ( oldValue instanceof String ) { return newValue ; } else if ( oldValue instanceof Integer ) { return Integer . valueOf ( newValue ) ; } else if ( oldValue instanceof SerialBlob ) { try { return DatabaseHelper . getSafeBlob ( newValue . getBytes ( ) ) ; } catch ( SQLException e ) { throw new ReplicatorException ( "Unable to convert back from String to SerialBlob: " + e , e ) ; } } else { return newValue ; } }
converts string back to correct ( previous ) data type .
