Class DatabaseHelper
- java.lang.Object
-
- org.ikasan.testharness.flow.database.DatabaseHelper
-
public class DatabaseHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]EXTENDED_TABLES_TO_CLEAR_BETWEEN_TESTSstatic java.lang.String[]MAIN_TABLES_TO_CLEAR_BETWEEN_TESTS
-
Constructor Summary
Constructors Constructor Description DatabaseHelper(javax.sql.DataSource ikasanDataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDatabase()Clears all data from tables that may have been added between testsvoidclearDatabase(java.util.List<java.lang.String> tablesToClear)voidclearExtendedDatabaseTables()Clears all data from tables that may have been added between tests
-
-
-
Method Detail
-
clearDatabase
public void clearDatabase() throws java.sql.SQLExceptionClears all data from tables that may have been added between tests- Throws:
java.sql.SQLException
-
clearExtendedDatabaseTables
public void clearExtendedDatabaseTables() throws java.sql.SQLExceptionClears all data from tables that may have been added between tests- Throws:
java.sql.SQLException
-
clearDatabase
public void clearDatabase(java.util.List<java.lang.String> tablesToClear) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-