com.ibatis.common.jdbc
public class ScriptRunner extends Object
| Constructor Summary | |
|---|---|
| ScriptRunner(Connection connection, boolean autoCommit, boolean stopOnError)
Default constructor | |
| ScriptRunner(String driver, String url, String username, String password, boolean autoCommit, boolean stopOnError) | |
| Method Summary | |
|---|---|
| void | runScript(Reader reader)
Runs an SQL script (read in using the Reader parameter)
|
| void | setDelimiter(String delimiter, boolean fullLineDelimiter) |
| void | setErrorLogWriter(PrintWriter errorLogWriter)
Setter for errorLogWriter property
|
| void | setLogWriter(PrintWriter logWriter)
Setter for logWriter property
|
Parameters: reader - the source of the script
Parameters: errorLogWriter - the new value of the errorLogWriter property
Parameters: logWriter - the new value of the logWriter property