Package org.apache.ibatis.jdbc
Class ScriptRunner
- java.lang.Object
-
- org.apache.ibatis.jdbc.ScriptRunner
-
public class ScriptRunner extends java.lang.Object
- Author:
- Clinton Begin
-
-
Constructor Summary
Constructors Constructor Description ScriptRunner(java.sql.Connection connection)
-
Method Summary
Modifier and Type Method Description void
closeConnection()
Deprecated.Since 3.5.4, this method is deprecated.void
runScript(java.io.Reader reader)
void
setAutoCommit(boolean autoCommit)
void
setDelimiter(java.lang.String delimiter)
void
setErrorLogWriter(java.io.PrintWriter errorLogWriter)
void
setEscapeProcessing(boolean escapeProcessing)
void
setFullLineDelimiter(boolean fullLineDelimiter)
void
setLogWriter(java.io.PrintWriter logWriter)
void
setRemoveCRs(boolean removeCRs)
void
setSendFullScript(boolean sendFullScript)
void
setStopOnError(boolean stopOnError)
void
setThrowWarning(boolean throwWarning)
-
-
-
Method Detail
-
setStopOnError
public void setStopOnError(boolean stopOnError)
-
setThrowWarning
public void setThrowWarning(boolean throwWarning)
-
setAutoCommit
public void setAutoCommit(boolean autoCommit)
-
setSendFullScript
public void setSendFullScript(boolean sendFullScript)
-
setRemoveCRs
public void setRemoveCRs(boolean removeCRs)
-
setEscapeProcessing
public void setEscapeProcessing(boolean escapeProcessing)
- Since:
- 3.1.1
-
setLogWriter
public void setLogWriter(java.io.PrintWriter logWriter)
-
setErrorLogWriter
public void setErrorLogWriter(java.io.PrintWriter errorLogWriter)
-
setDelimiter
public void setDelimiter(java.lang.String delimiter)
-
setFullLineDelimiter
public void setFullLineDelimiter(boolean fullLineDelimiter)
-
runScript
public void runScript(java.io.Reader reader)
-
closeConnection
@Deprecated public void closeConnection()
Deprecated.Since 3.5.4, this method is deprecated. Please close theConnection
outside of this class.
-
-