@Test public void testBlobToStringWrongType() throws Exception { BlobColumnTranslator translator = new BlobColumnTranslator(); JdbcResultRow row = new JdbcResultRow(); row.setFieldValue("testField", "SomeData", Types.BLOB); try { translator.translate(row, "testField"); fail(); } catch (Exception ex) { } }
@Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return toString((Blob) rs.getFieldValue(column)); }
BlobColumnTranslator extends ColumnWriterWithCharEncoding { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return toString((Blob) rs.getFieldValue(column)); } }
BlobColumnTranslator extends ColumnWriterWithCharEncoding { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return toString((Blob) rs.getFieldValue(column)); } BlobColumnTranslator();  BlobColumnTranslator(String charEncoding); }
BlobColumnTranslator extends ColumnWriterWithCharEncoding { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return toString((Blob) rs.getFieldValue(column)); } BlobColumnTranslator();  BlobColumnTranslator(String charEncoding); @Override String translate(JdbcResultRow rs, int column); @Override String translate(JdbcResultRow rs, String columnName); @Override void write(JdbcResultRow rs, int column, OutputStream out); @Override void write(JdbcResultRow rs, String columnName, OutputStream out); }
BlobColumnTranslator extends ColumnWriterWithCharEncoding { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return toString((Blob) rs.getFieldValue(column)); } BlobColumnTranslator();  BlobColumnTranslator(String charEncoding); @Override String translate(JdbcResultRow rs, int column); @Override String translate(JdbcResultRow rs, String columnName); @Override void write(JdbcResultRow rs, int column, OutputStream out); @Override void write(JdbcResultRow rs, String columnName, OutputStream out);  }