private String valueToString(Object value) throws ReplicatorException {
  if (value instanceof String) {
    return value.toString();
  }
 else   if (value instanceof Integer) {
    return value.toString();
  }
 else   if (value instanceof SerialBlob) {
    try {
      SerialBlob blob=(SerialBlob)value;
      return new String(blob.getBytes(1,(int)blob.length()));
    }
 catch (    SerialException e) {
      throw new ReplicatorException("Unable to convert SerialBlob to String: " + e,e);
    }
  }
 else {
    return (String)value;
  }
}

private String valueToString ( Object value ) throws ReplicatorException { if ( value instanceof String ) { return value . toString ( ) ; } else if ( value instanceof Integer ) { return value . toString ( ) ; } else if ( value instanceof SerialBlob ) { try { SerialBlob blob = ( SerialBlob ) value ; return new String ( blob . getBytes ( 1 , ( int ) blob . length ( ) ) ) ; } catch ( SerialException e ) { throw new ReplicatorException ( "Unable to convert SerialBlob to String: " + e , e ) ; } } else { return ( String ) value ; } }
converts underlying data type value to string . exception is thrown if type is unsupported .
