@Test public void getBigIntFromResultSet() throws SQLException, IOException { String[] expectedNames = {"BigInt", "Null BigInt"}; String[] realValues = {"100", null}; String[] expectedValues = {"100", ""}; int[] expectedTypes = {Types.BIGINT, Types.BIGINT}; ResultSetMetaData metaData = MockResultSetMetaDataBuilder.buildMetaData(expectedNames, expectedTypes); ResultSet resultSet = MockResultSetBuilder.buildResultSet(metaData, realValues, expectedTypes); ResultSetHelperService service = new ResultSetHelperService(); String[] columnValues = service.getColumnValues(resultSet); assertArrayEquals(expectedValues, columnValues); }
public String[] getColumnValues(ResultSet rs) throws SQLException, IOException { return this.getColumnValues(rs, false, DEFAULT_DATE_FORMAT, DEFAULT_TIMESTAMP_FORMAT); }
ResultSetHelperService implements ResultSetHelper { public String[] getColumnValues(ResultSet rs) throws SQLException, IOException { return this.getColumnValues(rs, false, DEFAULT_DATE_FORMAT, DEFAULT_TIMESTAMP_FORMAT); } }
ResultSetHelperService implements ResultSetHelper { public String[] getColumnValues(ResultSet rs) throws SQLException, IOException { return this.getColumnValues(rs, false, DEFAULT_DATE_FORMAT, DEFAULT_TIMESTAMP_FORMAT); }  }
ResultSetHelperService implements ResultSetHelper { public String[] getColumnValues(ResultSet rs) throws SQLException, IOException { return this.getColumnValues(rs, false, DEFAULT_DATE_FORMAT, DEFAULT_TIMESTAMP_FORMAT); }  String[] getColumnNames(ResultSet rs); String[] getColumnValues(ResultSet rs); String[] getColumnValues(ResultSet rs, boolean trim); String[] getColumnValues(ResultSet rs, boolean trim, String dateFormatString, String timeFormatString); }
ResultSetHelperService implements ResultSetHelper { public String[] getColumnValues(ResultSet rs) throws SQLException, IOException { return this.getColumnValues(rs, false, DEFAULT_DATE_FORMAT, DEFAULT_TIMESTAMP_FORMAT); }  String[] getColumnNames(ResultSet rs); String[] getColumnValues(ResultSet rs); String[] getColumnValues(ResultSet rs, boolean trim); String[] getColumnValues(ResultSet rs, boolean trim, String dateFormatString, String timeFormatString); static final int CLOBBUFFERSIZE; static final int NVARCHAR; static final int NCHAR; static final int LONGNVARCHAR; static final int NCLOB; }