Package com.consol.citrus.actions
Class ExecuteSQLAction
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.jdbc.core.support.JdbcDaoSupport
-
- com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
-
- com.consol.citrus.actions.ExecuteSQLAction
-
- 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 ExecuteSQLAction extends AbstractDatabaseConnectingTestAction
Test action execute SQL statements. Use this action when executing database altering statements like UPDATE, INSERT, ALTER, DELETE. Statements are either embedded inline in the test case description or given by an external file resource. When executing SQL query statements (SELECT) seeExecuteSQLQueryAction.- Since:
- 2006
- Author:
- Christoph Deppisch, Jan Szczepanski
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecuteSQLAction.BuilderAction builder.
-
Field Summary
-
Fields inherited from class com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
log, sqlResourcePath, statements
-
-
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 SQL statements.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
-
-
-
-
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 SQL statements.- Parameters:
statements-context-
-
isIgnoreErrors
public boolean isIgnoreErrors()
Gets the ignoreErrors.- Returns:
- the ignoreErrors
-
-