|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.tools.ij.Main
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.
Field Summary | |
java.lang.Class |
langUtilClass
|
LocalizedOutput |
out
|
utilMain |
utilInstance
|
Constructor Summary | |
Main()
create an ij tool waiting to be given input and output streams. |
|
Main(boolean trash)
This constructor is only used so that we can get to the right Main based on the JDBC version. |
|
Main(LocalizedOutput out)
|
Method Summary | |
Main |
getMain(LocalizedOutput out)
Get the right Main (according to the JDBC version. |
utilMain |
getutilMain(int numConnections,
LocalizedOutput out)
Get the right utilMain (according to the JDBC version. |
void |
go(java.io.InputStream in,
java.io.PrintStream out,
java.util.Properties connAttributeDefaults)
|
void |
go(LocalizedInput in,
LocalizedOutput out,
java.util.Properties connAttributeDefaults)
Give a shortcut to go on the utilInstance so we don't expose utilMain. |
void |
initAppUI()
|
static void |
main(java.lang.String[] args)
ij can be used directly on a shell command line through its main program. |
static void |
mainCore(java.lang.String[] args,
Main main)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public LocalizedOutput out
public utilMain utilInstance
public java.lang.Class langUtilClass
Constructor Detail |
public Main()
public Main(LocalizedOutput out)
public Main(boolean trash)
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
args
- allows 1 file name to be specified, from which
input will be read; if not specified, stdin is used.
java.io.IOException
public static void mainCore(java.lang.String[] args, Main main) throws java.io.IOException
java.io.IOException
public Main getMain(LocalizedOutput out)
public utilMain getutilMain(int numConnections, LocalizedOutput out)
public void go(LocalizedInput in, LocalizedOutput out, java.util.Properties connAttributeDefaults)
public void go(java.io.InputStream in, java.io.PrintStream out, java.util.Properties connAttributeDefaults)
public void initAppUI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |