|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibatis.common.jdbc.ScriptRunner
public class ScriptRunner
Tool to run database scripts
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptRunner(Connection connection,
boolean autoCommit,
boolean stopOnError)
public ScriptRunner(String driver,
String url,
String username,
String password,
boolean autoCommit,
boolean stopOnError)
| Method Detail |
|---|
public void setDelimiter(String delimiter,
boolean fullLineDelimiter)
public void setLogWriter(PrintWriter logWriter)
logWriter - - the new value of the logWriter propertypublic void setErrorLogWriter(PrintWriter errorLogWriter)
errorLogWriter - - the new value of the errorLogWriter property
public void runScript(Reader reader)
throws IOException,
SQLException
reader - - the source of the script
IOException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||