Package org.citrusframework.actions
Class ExecutePLSQLAction
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.citrusframework.actions.AbstractDatabaseConnectingTestAction
org.citrusframework.actions.ExecutePLSQLAction
- All Implemented Interfaces:
Described,Named,TestAction,TestActorAware,org.springframework.beans.factory.InitializingBean
Class executes PLSQL statements either declared inline as PLSQL statements or given by an
external file resource.
- Since:
- 2008
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecial statement endoing character sequenceFields inherited from class org.citrusframework.actions.AbstractDatabaseConnectingTestAction
log, sqlResourcePath, statementsFields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(TestContext context) Subclasses may add custom execution logic here.protected voidexecuteStatements(List<String> statements, TestContext context) Run all PLSQL statements.Gets the script.booleanGets the ignoreErrors.Methods inherited from class org.citrusframework.actions.AbstractDatabaseConnectingTestAction
createStatementsFromFileResource, createStatementsFromFileResource, execute, getActor, getDescription, getName, getSqlResourcePath, getStatements, getTransactionIsolationLevel, getTransactionManager, getTransactionTimeout, isDisabled, setActor, setDescription, setNameMethods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplateMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Field Details
-
PLSQL_STMT_ENDING
Special statement endoing character sequence- See Also:
-
-
Constructor Details
-
ExecutePLSQLAction
Default constructor.
-
-
Method Details
-
doExecute
Description copied from class:AbstractDatabaseConnectingTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractDatabaseConnectingTestAction
-
executeStatements
Run all PLSQL statements.- Parameters:
statements-context-
-
getScript
Gets the script.- Returns:
- the script
-
isIgnoreErrors
public boolean isIgnoreErrors()Gets the ignoreErrors.- Returns:
- the ignoreErrors
-