Package org.apache.ibatis.jdbc
Class ScriptRunner
- java.lang.Object
-
- org.apache.ibatis.jdbc.ScriptRunner
-
public class ScriptRunner extends Object
This is an internal testing utility.
You are welcome to use this class for your own purposes,
but if there is some feature/enhancement you need for your own usage,
please make and modify your own copy instead of sending us an enhancement request.- Author:
- Clinton Begin
-
-
Constructor Summary
Constructors Constructor Description ScriptRunner(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
closeConnection()
Deprecated.Since 3.5.4, this method is deprecated.void
runScript(Reader reader)
void
setAutoCommit(boolean autoCommit)
void
setDelimiter(String delimiter)
void
setErrorLogWriter(PrintWriter errorLogWriter)
void
setEscapeProcessing(boolean escapeProcessing)
Sets the escape processing.void
setFullLineDelimiter(boolean fullLineDelimiter)
void
setLogWriter(PrintWriter logWriter)
void
setRemoveCRs(boolean removeCRs)
void
setSendFullScript(boolean sendFullScript)
void
setStopOnError(boolean stopOnError)
void
setThrowWarning(boolean throwWarning)
-
-
-
Constructor Detail
-
ScriptRunner
public ScriptRunner(Connection connection)
-
-
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)
Sets the escape processing.- Parameters:
escapeProcessing
- the new escape processing- Since:
- 3.1.1
-
setLogWriter
public void setLogWriter(PrintWriter logWriter)
-
setErrorLogWriter
public void setErrorLogWriter(PrintWriter errorLogWriter)
-
setDelimiter
public void setDelimiter(String delimiter)
-
setFullLineDelimiter
public void setFullLineDelimiter(boolean fullLineDelimiter)
-
runScript
public void runScript(Reader reader)
-
closeConnection
@Deprecated public void closeConnection()
Deprecated.Since 3.5.4, this method is deprecated. Please close theConnection
outside of this class.
-
-