|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.common.jdbc.ScriptRunner
Tool to run database scripts
Constructor Summary | |
ScriptRunner(java.sql.Connection connection,
boolean autoCommit,
boolean stopOnError)
Default constructor |
|
ScriptRunner(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
boolean stopOnError)
|
Method Summary | |
void |
runScript(java.io.Reader reader)
Runs an SQL script (read in using the Reader parameter) |
void |
setErrorLogWriter(java.io.PrintWriter errorLogWriter)
Setter for errorLogWriter property |
void |
setLogWriter(java.io.PrintWriter logWriter)
Setter for logWriter property |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScriptRunner(java.sql.Connection connection, boolean autoCommit, boolean stopOnError)
public ScriptRunner(java.lang.String driver, java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, boolean stopOnError)
Method Detail |
public void setLogWriter(java.io.PrintWriter logWriter)
logWriter
- - the new value of the logWriter propertypublic void setErrorLogWriter(java.io.PrintWriter errorLogWriter)
errorLogWriter
- - the new value of the errorLogWriter propertypublic void runScript(java.io.Reader reader) throws java.io.IOException, java.sql.SQLException
reader
- - the source of the script
java.io.IOException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |