| Modifier and Type | Field and Description |
|---|---|
| private static final char | |
| private Connection | |
| private PrintStream | |
| private final ArrayList | |
| private static final int | |
| private InputStream | |
| private boolean | |
| private static final int | |
| private int | |
| private BufferedReader | |
| private String | |
| private Statement | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private Connection | |
| private void | |
| private boolean | |
| public static void | |
| protected void | |
| private void | |
| private int | |
| private int | |
| private int | |
| private int[] | |
| private void | |
| private String | |
| private String | |
| private String | |
| public void | |
| public void | runTool(String...
the command line settings args)Implements abstract org. Run the shell tool with the given command line settings. |
| public void | runTool(Connection
the connection conn, String... the command line settings args)Run the shell tool with the given connection and command line settings. |
| public void | |
| public void | |
| public void | |
| private void |
| BOX_VERTICAL | back to summary |
|---|---|
| private static final char BOX_VERTICAL | |
| conn | back to summary |
|---|---|
| private Connection conn | |
| err | back to summary |
|---|---|
| private PrintStream err | |
| history | back to summary |
|---|---|
| private final ArrayList<String> history | |
| HISTORY_COUNT | back to summary |
|---|---|
| private static final int HISTORY_COUNT | |
| in | back to summary |
|---|---|
| private InputStream in | |
| listMode | back to summary |
|---|---|
| private boolean listMode | |
| MAX_ROW_BUFFER | back to summary |
|---|---|
| private static final int MAX_ROW_BUFFER | |
| maxColumnSize | back to summary |
|---|---|
| private int maxColumnSize | |
| reader | back to summary |
|---|---|
| private BufferedReader reader | |
| serverPropertiesDir | back to summary |
|---|---|
| private String serverPropertiesDir | |
| stat | back to summary |
|---|---|
| private Statement stat | |
| stopHide | back to summary |
|---|---|
| private boolean stopHide | |
| Shell | back to summary |
|---|---|
| public Shell() | |
| connect | back to summary |
|---|---|
| private void connect() throws IOException, SQLException | |
| connectH2 | back to summary |
|---|---|
| private Connection connectH2(String driver, String url, String user) throws IOException, SQLException | |
| execute | back to summary |
|---|---|
| private void execute(String sql) | |
| loadRow | back to summary |
|---|---|
| private boolean loadRow(ResultSet rs, int len, ArrayList<String[]> rows) throws SQLException | |
| main | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static void main(String... args) throws SQLException Options are case sensitive.
| |||||||||||||||
| back to summary | |
|---|---|
| protected void print(String s) Print the string without newline, and flush.
| |
| println | back to summary |
|---|---|
| private void println(String s) | |
| printResult | back to summary |
|---|---|
| private int printResult(ResultSet rs, boolean asList) throws SQLException | |
| printResultAsList | back to summary |
|---|---|
| private int printResultAsList(ResultSet rs) throws SQLException | |
| printResultAsTable | back to summary |
|---|---|
| private int printResultAsTable(ResultSet rs) throws SQLException | |
| printRows | back to summary |
|---|---|
| private int[] printRows(ArrayList<String[]> rows, int len) | |
| promptLoop | back to summary |
|---|---|
| private void promptLoop() | |
| readLine | back to summary |
|---|---|
| private String readLine(String defaultValue) throws IOException | |
| readLine | back to summary |
|---|---|
| private String readLine() throws IOException | |
| readPassword | back to summary |
|---|---|
| private String readPassword() throws IOException | |
| run | back to summary |
|---|---|
| public void run() Implements java. INTERNAL. Hides the password by repeatedly printing backspace, backspace, >, <.
| |
| runTool | back to summary |
|---|---|
| public void runTool(String... args) throws SQLException Implements abstract org. Run the shell tool with the given command line settings.
| |
| runTool | back to summary |
|---|---|
| public void runTool(Connection conn, String... args) throws SQLException Run the shell tool with the given connection and command line settings. The connection will be closed when the shell exits. This is primary used to integrate the Shell into another application. Note using the "-url" option in
| |
| setErr | back to summary |
|---|---|
| public void setErr(PrintStream err) Sets the standard error stream.
| |
| setIn | back to summary |
|---|---|
| public void setIn(InputStream in) Redirects the standard input. By default, System.in is used.
| |
| setInReader | back to summary |
|---|---|
| public void setInReader(BufferedReader reader) Redirects the standard input. By default, System.in is used.
| |
| showHelp | back to summary |
|---|---|
| private void showHelp() | |