public class ExecuteSQLBuilder extends AbstractTestActionBuilder<ExecuteSQLAction>
action| Constructor and Description |
|---|
ExecuteSQLBuilder()
Default constructor.
|
ExecuteSQLBuilder(ExecuteSQLAction action)
Constructor using action field.
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteSQLBuilder |
dataSource(DataSource dataSource)
Sets the SQL data source.
|
ExecuteSQLBuilder |
ignoreErrors(boolean ignoreErrors)
Ignore errors during execution.
|
ExecuteSQLBuilder |
jdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Sets the Spring JDBC template to use.
|
ExecuteSQLBuilder |
sqlResource(org.springframework.core.io.Resource sqlResource)
Setter for external file resource containing the SQL statements to execute.
|
ExecuteSQLBuilder |
sqlResource(String filePath)
Setter for external file resource containing the SQL statements to execute.
|
ExecuteSQLBuilder |
statement(String sql)
Adds a new statement to the list of SQL executions.
|
ExecuteSQLBuilder |
statements(List<String> statements)
List of statements to execute.
|
ExecuteSQLBuilder |
transactionIsolationLevel(String isolationLevel)
Sets the transaction isolation level to use.
|
ExecuteSQLBuilder |
transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Sets the transaction manager to use.
|
ExecuteSQLBuilder |
transactionTimeout(int transactionTimeout)
Sets the transaction timeout to use.
|
ExecuteSQLBuilder |
transactionTimeout(String transactionTimeout)
Sets the transaction timeout to use.
|
actor, build, description, execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNamepublic ExecuteSQLBuilder(ExecuteSQLAction action)
action - public ExecuteSQLBuilder()
public ExecuteSQLBuilder jdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - public ExecuteSQLBuilder transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager - public ExecuteSQLBuilder transactionTimeout(int transactionTimeout)
transactionTimeout - public ExecuteSQLBuilder transactionTimeout(String transactionTimeout)
transactionTimeout - public ExecuteSQLBuilder transactionIsolationLevel(String isolationLevel)
isolationLevel - public ExecuteSQLBuilder dataSource(DataSource dataSource)
dataSource - public ExecuteSQLBuilder statements(List<String> statements)
statements - public ExecuteSQLBuilder statement(String sql)
sql - public ExecuteSQLBuilder sqlResource(org.springframework.core.io.Resource sqlResource)
sqlResource - public ExecuteSQLBuilder sqlResource(String filePath)
filePath - public ExecuteSQLBuilder ignoreErrors(boolean ignoreErrors)
ignoreErrors - boolean flag to setCopyright © 2008–2019 ConSol Software GmbH. All rights reserved.