List of utility methods to do ResultSet to String
String | toString(ResultSet rs) to String StringBuffer buf = new StringBuffer(); buf.append("["); try { ResultSetMetaData metaData = rs.getMetaData(); int nColumns = metaData.getColumnCount(); for (int i = 1; i <= nColumns; ++i) { buf.append(metaData.getColumnName(i)); buf.append(" = "); ... |
String[][] | toString2dArray(ResultSet resultSet) to Stringd Array String[][] resultArray; int rowSize = 0; int columnSize = 0; try { resultSet.last(); rowSize = resultSet.getRow(); resultSet.beforeFirst(); ResultSetMetaData resultSetMetaData = resultSet.getMetaData(); ... |