| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Main.
Helper to produce table-formatted output of a JDBC resultset. |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private final Connection | |
| private boolean | |
| private static final String | |
| private static final String | |
| private final BufferedReader | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | consoleDump(ResultSet resultSet, PrintStream printStream)
Prints the ResultSet |
| private void | executeExport(String cmd)
Parse the |
| private void | |
| private void | exportCsvAndSchema(CharSequence sqlQuery, String csvFileName, String schemaFileName, Exporter exporter)
Runs the given |
| private static boolean | |
| public static void | |
| private void | |
| private void | |
| private void | |
| private String | |
| private void | |
| public static void | |
| private void | |
| pack-priv static List |
| batchMode | back to summary |
|---|---|
| private static boolean batchMode | |
| conn | back to summary |
|---|---|
| private final Connection conn | |
| connected | back to summary |
|---|---|
| private boolean connected | |
| EXPORT_PROMPT | back to summary |
|---|---|
| private static final String EXPORT_PROMPT | |
| EXPORT_USAGE | back to summary |
|---|---|
| private static final String EXPORT_USAGE | |
| input | back to summary |
|---|---|
| private final BufferedReader input | |
| lastSqlQuery | back to summary |
|---|---|
| private String lastSqlQuery | |
| Main | back to summary |
|---|---|
| public Main(Connection conn, BufferedReader input) | |
| consoleDump | back to summary |
|---|---|
| public void consoleDump(ResultSet resultSet, PrintStream printStream) throws SQLException Prints the ResultSet | |
| executeExport | back to summary |
|---|---|
| private void executeExport(String cmd) throws SQLException, IOException Parse the export -d , -t License License.csvThe -d , option changes the delimiter character to a comma instead of the default semicolon. The
-t License option dumps the License table using the SQL statement "SELECT * FROM [License]".
| |
| executeStatement | back to summary |
|---|---|
| private void executeStatement(String sql) throws SQLException | |
| exportCsvAndSchema | back to summary |
|---|---|
| private void exportCsvAndSchema(CharSequence sqlQuery, String csvFileName, String schemaFileName, Exporter exporter) throws SQLException, IOException Runs the given | |
| hasPassword | back to summary |
|---|---|
| private static boolean hasPassword(File f) throws IOException | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |
| printExportHelp | back to summary |
|---|---|
| private void printExportHelp() | |
| prompt | back to summary |
|---|---|
| private void prompt() | |
| prompt | back to summary |
|---|---|
| private void prompt(String content) | |
| readInput | back to summary |
|---|---|
| private String readInput() | |
| sayHello | back to summary |
|---|---|
| private void sayHello(String version) | |
| setBatchMode | back to summary |
|---|---|
| public static void setBatchMode(boolean batchMode) | |
| start | back to summary |
|---|---|
| private void start(String[] commands) | |
| tokenize | back to summary |
|---|---|
| pack-priv static List | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List | |
| private static final int | |
| pack-priv static final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | |
| pack-priv String | |
| pack-priv static String | |
| pack-priv void | |
| pack-priv static String | |
| pack-priv static String |
| colNames | back to summary |
|---|---|
| private final List<String> colNames | |
| colTypes | back to summary |
|---|---|
| private final List<Integer> colTypes | |
| colWidths | back to summary |
|---|---|
| private final List<Integer> colWidths | |
| MAX_COL_WIDTH | back to summary |
|---|---|
| private static final int MAX_COL_WIDTH | |
| NUMERIC_JDBC_TYPES | back to summary |
|---|---|
| pack-priv static final List<Integer> NUMERIC_JDBC_TYPES | |
| records | back to summary |
|---|---|
| private final List<List<String>> records | |
| TableFormat | back to summary |
|---|---|
| pack-priv TableFormat(ResultSet resultSet) throws SQLException | |
| TableFormat | back to summary |
|---|---|
| pack-priv TableFormat(ResultSet resultSet, int maxRows) throws SQLException | |
| isNumericJdbcType | back to summary |
|---|---|
| pack-priv static boolean isNumericJdbcType(int type) | |
| joinWithLen | back to summary |
|---|---|
| pack-priv String joinWithLen(CharSequence delim, List<String> elems) | |
| leftPad | back to summary |
|---|---|
| pack-priv static String leftPad(String str, int width) | |
| output | back to summary |
|---|---|
| pack-priv void output(PrintStream printStream) | |
| repeat | back to summary |
|---|---|
| pack-priv static String repeat(String str, int count) | |
| rightPad | back to summary |
|---|---|
| pack-priv static String rightPad(String str, int width) | |