public class ClearDatabaseLifecycle extends BaseLifecycle
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
static String |
TEST_TABLE_NAME |
Constructor and Description |
---|
ClearDatabaseLifecycle() |
ClearDatabaseLifecycle(List<String> tablesToClear,
List<String> tablesNotToClear) |
Modifier and Type | Method and Description |
---|---|
protected void |
addStandardTables() |
protected void |
clearTables(org.springframework.transaction.PlatformTransactionManager transactionManager,
DataSource dataSource) |
List<String> |
getTablesNotToClear() |
List<String> |
getTablesToClear() |
protected Map<String,List<String[]>> |
indexExportedKeys(DatabaseMetaData metaData,
String schemaName) |
protected Boolean |
isTestTableInSchema(Connection connection) |
void |
start() |
protected void |
verifyTestEnvironment(DataSource dataSource) |
isStarted, setStarted, stop
protected static final org.apache.log4j.Logger LOG
public static final String TEST_TABLE_NAME
public ClearDatabaseLifecycle()
public ClearDatabaseLifecycle(List<String> tablesToClear, List<String> tablesNotToClear)
protected void addStandardTables()
public void start() throws Exception
start
in interface Lifecycle
start
in class BaseLifecycle
Exception
protected Boolean isTestTableInSchema(Connection connection) throws SQLException
SQLException
protected void verifyTestEnvironment(DataSource dataSource)
protected void clearTables(org.springframework.transaction.PlatformTransactionManager transactionManager, DataSource dataSource)
protected Map<String,List<String[]>> indexExportedKeys(DatabaseMetaData metaData, String schemaName) throws SQLException
SQLException
public List<String> getTablesToClear()
public List<String> getTablesNotToClear()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.