@Test public void testGetValue_null() throws Exception { MockResultSet rs = new MockResultSet(); ArrayMap rowData = new ArrayMap(); rowData.put("hoge", null); rs.addRowData(rowData); rs.next(); FloatType type = new FloatType(); assertNull(type.getValue(rs, 1)); }
public String getValue(ResultSet resultSet, int index) throws SQLException { Object value = resultSet.getObject(index); return value != null ? StringConversionUtil.toString(value) : null; }
FloatType extends AbstractSqlType { public String getValue(ResultSet resultSet, int index) throws SQLException { Object value = resultSet.getObject(index); return value != null ? StringConversionUtil.toString(value) : null; } }
FloatType extends AbstractSqlType { public String getValue(ResultSet resultSet, int index) throws SQLException { Object value = resultSet.getObject(index); return value != null ? StringConversionUtil.toString(value) : null; } FloatType();  FloatType(String dataType); }
FloatType extends AbstractSqlType { public String getValue(ResultSet resultSet, int index) throws SQLException { Object value = resultSet.getObject(index); return value != null ? StringConversionUtil.toString(value) : null; } FloatType();  FloatType(String dataType); void bindValue(PreparedStatement ps, int index, String value); String getValue(ResultSet resultSet, int index); }
FloatType extends AbstractSqlType { public String getValue(ResultSet resultSet, int index) throws SQLException { Object value = resultSet.getObject(index); return value != null ? StringConversionUtil.toString(value) : null; } FloatType();  FloatType(String dataType); void bindValue(PreparedStatement ps, int index, String value); String getValue(ResultSet resultSet, int index);  }