| java.lang.Object org.apache.derby.impl.tools.ij.Main
All known Subclasses: org.apache.derby.impl.tools.ij.Main14,
Main | public class Main (Code) | | This is the controller for ij. It uses two parsers:
one to grab the next statement, and another to
see if it is an ij command, and if so execute it.
If it is not an ij command, it is treated as a JSQL
statement and executed against the current connection.
ijParser controls the current connection, and so contains
all of the state information for executing JSQL statements.
This was written to facilitate a test harness for language
functionality tests.
author: ames |
Constructor Summary | |
public | Main() create an ij tool waiting to be given input and output streams. | public | Main(LocalizedOutput out) | public | Main(boolean trash) This constructor is only used so that we
can get to the right Main based on the
JDBC version. |
Main | public Main()(Code) | | create an ij tool waiting to be given input and output streams.
|
Main | public Main(boolean trash)(Code) | | This constructor is only used so that we
can get to the right Main based on the
JDBC version. We don't do any work in
this constructor and we only use this
object to get to the right Main via
getMain().
|
getMain | public Main getMain(LocalizedOutput out)(Code) | | Get the right Main (according to
the JDBC version.
The right main (according to the JDBC version). |
getutilMain | public utilMain getutilMain(int numConnections, LocalizedOutput out)(Code) | | Get the right utilMain (according to
the JDBC version.
The right utilMain (according to the JDBC version). |
main | public static void main(String[] args) throws IOException(Code) | | ij can be used directly on a shell command line through
its main program.
Parameters: args - allows 1 file name to be specified, from whichinput will be read; if not specified, stdin is used. |
|
|