Java Utililty Methods SQL ResultSet Print

List of utility methods to do SQL ResultSet Print

Description

The list of methods to do SQL ResultSet Print are organized into topic(s).

Method

StringprintView(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++) {
...
voidprintWarnings(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");