JdbcResultRow { public void setFieldValue(String fieldName, Object fieldValue, ParameterValueType type) { getFieldNames().add(fieldName); getFieldValues().add(fieldValue); getFieldTypes().add(type); } JdbcResultRow(); List<String> getFieldNames(); void setFieldValue(String fieldName, Object fieldValue, ParameterValueType type); void setFieldValue(String fieldName, Object fieldValue, Integer type); int getFieldCount(); Object getFieldValue(int order); String getFieldName(int order); ParameterValueType getFieldType(int order); ParameterValueType getFieldType(String fieldName); Object getFieldValue(String fieldName); List<ParameterValueType> getFieldTypes();  }
@Test public void testSetFieldValue() { JdbcResultRow row = new JdbcResultRow(); row.setFieldValue("testField0", Integer.valueOf(1), Types.INTEGER); row.setFieldValue("testField1", Integer.valueOf(1), ParameterValueType.INTEGER); assertEquals(2, row.getFieldCount()); assertEquals(2, row.getFieldNames().size()); assertEquals(2, row.getFieldTypes().size()); assertEquals(1, row.getFieldValue(0)); assertEquals(ParameterValueType.INTEGER, row.getFieldType(0)); assertEquals(ParameterValueType.INTEGER, row.getFieldType(1)); }