org.crazycake.ScaffoldUnit.utils
类 ScriptRunner
java.lang.Object
org.crazycake.ScaffoldUnit.utils.ScriptRunner
public class ScriptRunner
- extends Object
Tool to run database scripts
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptRunner
public ScriptRunner(Connection connection,
boolean autoCommit,
boolean stopOnError)
- Default constructor
setDelimiter
public void setDelimiter(String delimiter,
boolean fullLineDelimiter)
runScript
public void runScript(Reader reader)
throws IOException,
SQLException
- Runs an SQL script (read in using the Reader parameter)
- 参数:
reader - - the source of the script
- 抛出:
IOException
SQLException
Copyright © 2014. All rights reserved.