Package org.citrusframework.actions
Class AbstractDatabaseConnectingTestAction.Builder<T extends AbstractDatabaseConnectingTestAction,S extends AbstractDatabaseConnectingTestAction.Builder<T,S>>
java.lang.Object
org.citrusframework.AbstractTestActionBuilder<T,S>
org.citrusframework.actions.AbstractDatabaseConnectingTestAction.Builder<T,S>
- All Implemented Interfaces:
TestActionBuilder<T>
- Direct Known Subclasses:
ExecutePLSQLAction.Builder,ExecuteSQLAction.Builder,ExecuteSQLQueryAction.Builder
- Enclosing class:
- AbstractDatabaseConnectingTestAction
public abstract static class AbstractDatabaseConnectingTestAction.Builder<T extends AbstractDatabaseConnectingTestAction,S extends AbstractDatabaseConnectingTestAction.Builder<T,S>>
extends AbstractTestActionBuilder<T,S>
Action builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.TestActionBuilder
TestActionBuilder.DelegatingTestActionBuilder<T extends TestAction> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataSourceprotected org.springframework.jdbc.core.JdbcTemplateprotected Stringprotected Stringprotected org.springframework.transaction.PlatformTransactionManagerprotected StringFields inherited from class org.citrusframework.AbstractTestActionBuilder
selfFields inherited from interface org.citrusframework.TestActionBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataSource(DataSource dataSource) Sets the SQL data source.jdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Sets the Spring JDBC template to use.sqlResource(String filePath) Setter for external file resource containing the SQL statements to execute.sqlResource(Resource sqlResource) Setter for external file resource containing the SQL statements to execute.Adds a new statement to the list of SQL executions.statements(List<String> statements) List of statements to execute.transactionIsolationLevel(String isolationLevel) Sets the transaction isolation level to use.transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) Sets the transaction manager to use.transactionTimeout(int transactionTimeout) Sets the transaction timeout to use.transactionTimeout(String transactionTimeout) Sets the transaction timeout to use.Methods inherited from class org.citrusframework.AbstractTestActionBuilder
actor, description, getActor, getDescription, getName, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.TestActionBuilder
build
-
Field Details
-
jdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate -
dataSource
-
sqlResourcePath
-
statements
-
transactionManager
protected org.springframework.transaction.PlatformTransactionManager transactionManager -
transactionTimeout
-
transactionIsolationLevel
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jdbcTemplate
Sets the Spring JDBC template to use.- Parameters:
jdbcTemplate-- Returns:
-
transactionManager
public S transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) Sets the transaction manager to use.- Parameters:
transactionManager-- Returns:
-
transactionTimeout
Sets the transaction timeout to use.- Parameters:
transactionTimeout-- Returns:
-
transactionTimeout
Sets the transaction timeout to use.- Parameters:
transactionTimeout-- Returns:
-
transactionIsolationLevel
Sets the transaction isolation level to use.- Parameters:
isolationLevel-- Returns:
-
dataSource
Sets the SQL data source.- Parameters:
dataSource-- Returns:
-
statements
List of statements to execute. Declared inline in the test case.- Parameters:
statements-
-
statement
Adds a new statement to the list of SQL executions.- Parameters:
sql-- Returns:
-
sqlResource
Setter for external file resource containing the SQL statements to execute.- Parameters:
sqlResource-
-
sqlResource
Setter for external file resource containing the SQL statements to execute.- Parameters:
filePath-
-