public class ScriptRunner extends Object
| Constructor and Description |
|---|
ScriptRunner(Connection connection,
boolean autoCommit,
boolean stopOnError)
Default constructor.
|
| 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) |
public ScriptRunner(Connection connection, boolean autoCommit, boolean stopOnError)
connection - autoCommit - stopOnError - public void setDelimiter(String delimiter, boolean fullLineDelimiter)
delimiter - fullLineDelimiter - public void runScript(Reader reader) throws IOException, SQLException
reader - - the source of the scriptSQLException - if any SQL errors occurIOException - if there is an error reading from the ReaderCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.