Constructor and Description |
---|
Shell() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String... args)
Options are case sensitive.
|
protected void |
print(String s)
Print the string without newline, and flush.
|
void |
run()
INTERNAL.
|
void |
runTool(String... args)
Run the shell tool with the given command line settings.
|
void |
setErr(PrintStream err)
Sets the standard error stream.
|
void |
setIn(InputStream in)
Redirects the standard input.
|
void |
setInReader(BufferedReader reader)
Redirects the standard input.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, throwUnsupportedOption
public static void main(String... args) throws SQLException
[-help] or [-?] | Print the list of options |
[-url "<url>"] | The database URL (jdbc:h2:...) |
[-user <user>] | The user name |
[-password <pwd>] | The password |
[-driver <class>] | The JDBC driver class to use (not required in most cases) |
[-sql "<statements>"] | Execute the SQL statements and exit |
[-properties "<dir>"] | Load the server properties from this directory |
args
- the command line argumentsSQLException
public void setErr(PrintStream err)
err
- the new standard error streampublic void setIn(InputStream in)
in
- the input stream to usepublic void setInReader(BufferedReader reader)
reader
- the input stream reader to usepublic void runTool(String... args) throws SQLException
runTool
in class Tool
args
- the command line settingsSQLException
protected void print(String s)
s
- the string to printCopyright © 2012 JBoss by Red Hat. All Rights Reserved.