|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.tools.JDBCScriptTool
public class JDBCScriptTool
A tool that reads an input SQL script and output information for the result either to an output file or through System.out. This is a useful command line tool that can be used for regression testing and database diagnostics (as well as for basic SQL scripting needs).
This class is able to output result sets in textual form.
Constructor Summary | |
---|---|
JDBCScriptTool(java.io.Reader input,
java.io.PrintWriter output)
Constructs the tool. |
Method Summary | |
---|---|
java.sql.Connection[] |
evaluate(java.sql.Connection connection,
java.lang.String url,
java.lang.String username,
java.lang.String password)
Evaluates the input script and outputs the result to the output stream. |
static void |
main(java.lang.String[] args)
The application start point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCScriptTool(java.io.Reader input, java.io.PrintWriter output)
Method Detail |
---|
public java.sql.Connection[] evaluate(java.sql.Connection connection, java.lang.String url, java.lang.String username, java.lang.String password) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |