| java.lang.Object org.hsqldb.util.SqlTool
SqlTool | public class SqlTool (Code) | | Sql Tool. A command-line and/or interactive SQL tool.
(Note: For every Javadoc block comment, I'm using a single blank line
immediately after the description, just like's Sun's examples in
their Coding Conventions document).
See JavaDocs for the main method for syntax of how to run.
This class is mostly used in a static (a.o.t. object) way, because most
of the work is done in the static main class.
This class should be refactored so that the main work is done in an
object method, and the static main invokes the object method.
Then programmatic users could use instances of this class in the normal
Java way.
See Also: SqlTool.main() version: $Revision: 1.72 $ author: Blaine Simpson unsaved@users |
Inner Class :public static class SqlToolException extends Exception | |
Method Summary | |
public static void | main(String[] args) A static wrapper for objectMain, so that that method may be executed
as a Java "program". | public static void | objectMain(String[] arg) Connect to a JDBC Database and execute the commands given on
stdin or in SQL file(s).
This method is changed for HSQLDB 1.8.0.8 and 1.9.0.x to never
System.exit().
Parameters: arg - Run "java... |
CONNECTERR_EXITVAL | final public static int CONNECTERR_EXITVAL(Code) | | |
FILEERR_EXITVAL | final public static int FILEERR_EXITVAL(Code) | | |
INPUTERR_EXITVAL | final public static int INPUTERR_EXITVAL(Code) | | |
IOERR_EXITVAL | final public static int IOERR_EXITVAL(Code) | | |
RCERR_EXITVAL | final public static int RCERR_EXITVAL(Code) | | |
SQLERR_EXITVAL | final public static int SQLERR_EXITVAL(Code) | | |
SQLTOOLERR_EXITVAL | final public static int SQLTOOLERR_EXITVAL(Code) | | |
SYNTAXERR_EXITVAL | final public static int SYNTAXERR_EXITVAL(Code) | | |
main | public static void main(String[] args)(Code) | | A static wrapper for objectMain, so that that method may be executed
as a Java "program".
Throws only RuntimExceptions or Errors, because this method is intended
to System.exit() for all but disasterous system problems, for which
the inconvenience of a a stack trace would be the least of your worries.
If you don't want SqlTool to System.exit(), then use the method
objectMain() instead of this method.
See Also: objectMain(String[]) |
objectMain | public static void objectMain(String[] arg) throws SqlToolException(Code) | | Connect to a JDBC Database and execute the commands given on
stdin or in SQL file(s).
This method is changed for HSQLDB 1.8.0.8 and 1.9.0.x to never
System.exit().
Parameters: arg - Run "java... org.hsqldb.util.SqlTool --help" for syntax. throws: SqlToolException - Upon any fatal error, with usefulreason as the exception's message. |
|
|