List of utility methods to do SQL ResultSet Print
String | printView(ResultSet rs) print View ResultSetMetaData rsMetaData = rs.getMetaData(); int numCols = rsMetaData.getColumnCount(); String[] headers = new String[numCols]; OpenType[] allTypes = new OpenType[numCols]; Vector[] values = new Vector[numCols]; Object[] allValues = new Object[numCols]; String ret = ""; for (int i = 0; i < numCols; i++) { ... |
void | printWarnings(ResultSet resultSet) print Warnings System.out.println("Resultset warnings begin:"); if (resultSet != null) { SQLWarning warning = resultSet.getWarnings(); if (warning != null) warning = warning.getNextWarning(); if (warning != null) System.out.println("Message: " + warning.getMessage()); System.out.println("Resultset warnings end"); |