public class ScriptRunner extends Object
Constructor and Description |
---|
ScriptRunner(Connection connection,
boolean autoCommit,
boolean stopOnError)
Default constructor
|
ScriptRunner(String driver,
String url,
String username,
String password,
boolean autoCommit,
boolean stopOnError) |
Modifier and Type | Method and Description |
---|---|
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
|
public ScriptRunner(Connection connection, boolean autoCommit, boolean stopOnError)
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 propertyCopyright © 2006–2018 TinyGroup. All rights reserved.