| java.lang.Object org.continuent.sequoia.console.text.formatter.ResultSetFormatter
ResultSetFormatter | public class ResultSetFormatter (Code) | | Utility class to format a ResultSet to display it prettily in
the text console
author: Jeff Mesnil |
formatAndDisplay | public static void formatAndDisplay(ResultSet rs, int fetchsize, Console console) throws SQLException(Code) | | Format and display the given ResultSet on the console.
Parameters: rs - the ResultSet to display Parameters: fetchsize - fetchisze value Parameters: console - console where the ResultSet will be displayed and he size ofthe result set) throws: SQLException - if an error occurs |
toggleRowDisplay | public static boolean toggleRowDisplay()(Code) | | Toggles the display of rows either horizontally (by default) or vertically.
true if the result set's rows will be displayedhorizontally (everything on the same line), false ifthe rows will be displayed vertically (one row cell per line, onerow after the other) |
|
|