public class PrettyFormatter extends AbstractFormatter
conInfo, maxrowsCONSOLE_LINES, CONSOLE_WIDTH| Constructor and Description |
|---|
PrettyFormatter() |
PrettyFormatter(ConnectionInfo ci,
TextConsole c) |
PrettyFormatter(TextConsole c) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(List items,
String[] fields,
int width) |
int |
format(ResultSet rs,
Writer writer,
int maxrows,
String sql,
String tablename,
String[] columns) |
String |
header(String sql,
ResultSet rs,
String[] columns) |
format, format, format, format, header, set, setConnectionInfo, setMaxRowspublic PrettyFormatter()
public PrettyFormatter(TextConsole c)
public PrettyFormatter(ConnectionInfo ci, TextConsole c)
public int format(ResultSet rs, Writer writer, int maxrows, String sql, String tablename, String[] columns) throws SQLException, IOException
SQLExceptionIOExceptionpublic String header(String sql, ResultSet rs, String[] columns) throws SQLException
SQLExceptionpublic String format(List items, String[] fields, int width) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, IOException
Copyright © 2014. All rights reserved.