Package com.consol.citrus.actions
Class ExecutePLSQLAction
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.jdbc.core.support.JdbcDaoSupport
-
- com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
-
- com.consol.citrus.actions.ExecutePLSQLAction
-
- All Implemented Interfaces:
com.consol.citrus.common.Described,com.consol.citrus.common.Named,com.consol.citrus.TestAction,com.consol.citrus.TestActorAware,org.springframework.beans.factory.InitializingBean
public class ExecutePLSQLAction extends AbstractDatabaseConnectingTestAction
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 Modifier and Type Class Description static classExecutePLSQLAction.BuilderAction builder.
-
Field Summary
Fields Modifier and Type Field Description static StringPLSQL_STMT_ENDINGSpecial statement endoing character sequence-
Fields inherited from class com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
log, sqlResourcePath, statements
-
-
Constructor Summary
Constructors Constructor Description ExecutePLSQLAction(ExecutePLSQLAction.Builder builder)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute(com.consol.citrus.context.TestContext context)Subclasses may add custom execution logic here.protected voidexecuteStatements(List<String> statements, com.consol.citrus.context.TestContext context)Run all PLSQL statements.StringgetScript()Gets the script.booleanisIgnoreErrors()Gets the ignoreErrors.-
Methods inherited from class com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
createStatementsFromFileResource, createStatementsFromFileResource, execute, getActor, getDescription, getName, getSqlResourcePath, getStatements, getTransactionIsolationLevel, getTransactionManager, getTransactionTimeout, isDisabled, setActor, setDescription, setName
-
-
-
-
Field Detail
-
PLSQL_STMT_ENDING
public static final String PLSQL_STMT_ENDING
Special statement endoing character sequence- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExecutePLSQLAction
public ExecutePLSQLAction(ExecutePLSQLAction.Builder builder)
Default constructor.
-
-
Method Detail
-
doExecute
public void doExecute(com.consol.citrus.context.TestContext context)
Description copied from class:AbstractDatabaseConnectingTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractDatabaseConnectingTestAction
-
executeStatements
protected void executeStatements(List<String> statements, com.consol.citrus.context.TestContext context)
Run all PLSQL statements.- Parameters:
statements-context-
-
getScript
public String getScript()
Gets the script.- Returns:
- the script
-
isIgnoreErrors
public boolean isIgnoreErrors()
Gets the ignoreErrors.- Returns:
- the ignoreErrors
-
-