org.crazycake.ScaffoldUnit.utils
类 ScriptRunner

java.lang.Object
  继承者 org.crazycake.ScaffoldUnit.utils.ScriptRunner

public class ScriptRunner
extends Object

Tool to run database scripts


构造方法摘要
ScriptRunner(Connection connection, boolean autoCommit, boolean stopOnError)
          Default constructor
 
方法摘要
 void runScript(Reader reader)
          Runs an SQL script (read in using the Reader parameter)
 void setDelimiter(String delimiter, boolean fullLineDelimiter)
           
 
从类 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.