Subclass of AbstractTransactionalSpringContextTests that adds some convenience
functionality for JDBC access. Expects a
javax.sql.DataSource bean
to be defined in the Spring application context.
getJdbcTemplate() Return the JdbcTemplate that this base class manages.
final protected void
setComplete() Overridden to prevent the transaction committing if a number of tables have been
cleared, as a defensive measure against accidental permanent wiping of a database.
public void
setDataSource(DataSource dataSource) Setter: DataSource is provided by Dependency Injection.
Execute the given SQL script. Will be rolled back by default,
according to the fate of the current transaction.
Parameters: sqlResourcePath - Spring resource path for the SQL script.Should normally be loaded by classpath. There should be one statementper line. Any semicolons will be removed.Do not use this method to execute DDL if you expect rollback. Parameters: continueOnError - whether or not to continue without throwingan exception in the event of an error throws: DataAccessException - if there is an error executing a statementand continueOnError was false