@Test public void testTrueBool() throws Exception { JdbcResultRow row = new JdbcResultRow(); boolean val = true; row.setFieldValue("testField", val, Types.BOOLEAN); String translated = translator.translate(row, 0); assertEquals("true", translated); }
@Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return String.valueOf(rs.getFieldValue(column)); }
BooleanColumnTranslator implements ColumnTranslator { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return String.valueOf(rs.getFieldValue(column)); } }
BooleanColumnTranslator implements ColumnTranslator { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return String.valueOf(rs.getFieldValue(column)); } BooleanColumnTranslator(); }
BooleanColumnTranslator implements ColumnTranslator { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return String.valueOf(rs.getFieldValue(column)); } BooleanColumnTranslator(); @Override String translate(JdbcResultRow rs, int column); @Override String translate(JdbcResultRow rs, String column); }
BooleanColumnTranslator implements ColumnTranslator { @Override public String translate(JdbcResultRow rs, int column) throws SQLException, IOException { return String.valueOf(rs.getFieldValue(column)); } BooleanColumnTranslator(); @Override String translate(JdbcResultRow rs, int column); @Override String translate(JdbcResultRow rs, String column);  }