public class SqlScriptExecutor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINISHED_MULTILINE_COMMENT
Comment prefix for last line of a multi-line comment.
|
static java.lang.String |
UNFINISHED_MULTILINE_COMMENT
Comment prefix for multi-line comments.
|
| Constructor and Description |
|---|
SqlScriptExecutor(Session session,
int threads)
Constructor.
|
SqlScriptExecutor(Session session,
int threads,
boolean logStatements)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<java.lang.Integer,java.lang.Long> |
executeScript(java.lang.String scriptFileName)
Reads in and executes a SQL-script.
|
Pair<java.lang.Integer,java.lang.Long> |
executeScript(java.lang.String scriptFileName,
boolean transactional)
Reads in and executes a SQL-script.
|
static Pair<java.lang.Integer,java.lang.Long> |
getLastStatementCount() |
public static final java.lang.String UNFINISHED_MULTILINE_COMMENT
public static final java.lang.String FINISHED_MULTILINE_COMMENT
public SqlScriptExecutor(Session session, int threads, boolean logStatements)
session - for execution of statementsthreads - number of threads to uselogStatements - log statements?public SqlScriptExecutor(Session session, int threads)
session - for execution of statementsthreads - number of threads to usepublic Pair<java.lang.Integer,java.lang.Long> executeScript(java.lang.String scriptFileName, boolean transactional) throws java.io.IOException, java.sql.SQLException
scriptFileName - the name of the script-filejava.io.IOExceptionjava.sql.SQLExceptionpublic Pair<java.lang.Integer,java.lang.Long> executeScript(java.lang.String scriptFileName) throws java.io.IOException, java.sql.SQLException
scriptFileName - the name of the script-filejava.io.IOExceptionjava.sql.SQLExceptionpublic static Pair<java.lang.Integer,java.lang.Long> getLastStatementCount()