com.consol.citrus.actions
Class ExecuteSQLAction

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
              extended by com.consol.citrus.actions.ExecuteSQLAction
All Implemented Interfaces:
TestAction, 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) see ExecuteSQLQueryAction.

Since:
2006
Author:
Christoph Deppisch, Jan Szczepanski

Field Summary
 
Fields inherited from class com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
log, SQL_COMMENT, sqlResourcePath, statements
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ExecuteSQLAction()
           
 
Method Summary
 void doExecute(TestContext context)
          Subclasses may add custom execution logic here.
 boolean isIgnoreErrors()
          Gets the ignoreErrors.
 void setIgnoreErrors(boolean ignoreErrors)
          Ignore errors during execution.
 
Methods inherited from class com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
createStatementsFromFileResource, decorateLastScriptLine, execute, getActor, getDescription, getName, getSqlResourcePath, getStatemendEndingCharacter, getStatements, isDisabled, setActor, setDescription, setName, setSqlResourcePath, setStatements
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteSQLAction

public ExecuteSQLAction()
Method Detail

doExecute

public void doExecute(TestContext context)
Description copied from class: AbstractDatabaseConnectingTestAction
Subclasses may add custom execution logic here.

Specified by:
doExecute in class AbstractDatabaseConnectingTestAction

setIgnoreErrors

public void setIgnoreErrors(boolean ignoreErrors)
Ignore errors during execution.

Parameters:
ignoreErrors - boolean flag to set

isIgnoreErrors

public boolean isIgnoreErrors()
Gets the ignoreErrors.

Returns:
the ignoreErrors


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.