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, stopprotected 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 Lifecyclestart in class BaseLifecycleExceptionprotected Boolean isTestTableInSchema(Connection connection) throws SQLException
SQLExceptionprotected 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
SQLExceptionpublic List<String> getTablesToClear()
public List<String> getTablesNotToClear()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.