|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.util.SqlFile
Encapsulation of a sql text file like 'myscript.sql'. The ultimate goal is to run the execute() method to feed the SQL commands within the file to a jdbc connection. Some implementation comments and variable names use keywords based on the following definitions.
Method Summary | |
void |
execute(Connection conn)
Process all the commands on stdin. |
void |
execute(Connection conn,
PrintStream stdIn,
PrintStream errIn)
Process all the commands in the file (or stdin) associated with "this" object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void execute(Connection conn) throws IOException, SqlToolError, SQLException
conn
- The JDBC connection to use for SQL Commands.
IOException
SqlToolError
SQLException
execute(Connection,PrintStream,PrintStream)
public void execute(Connection conn, PrintStream stdIn, PrintStream errIn) throws IOException, SqlToolError, SQLException
conn
- The JDBC connection to use for SQL Commands.
IOException
SqlToolError
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |