org.kuali.hr.time.util
Class ClearDatabaseLifecycle
java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.hr.time.util.ClearDatabaseLifecycle
- All Implemented Interfaces:
- org.kuali.rice.core.api.lifecycle.Lifecycle
public class ClearDatabaseLifecycle
- extends org.kuali.rice.core.api.lifecycle.BaseLifecycle
Methods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle |
isStarted, setStarted, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.log4j.Logger LOG
TEST_TABLE_NAME
public static final String TEST_TABLE_NAME
- See Also:
- Constant Field Values
START_CLEAR_ID
public static final Integer START_CLEAR_ID
ClearDatabaseLifecycle
public ClearDatabaseLifecycle()
start
public void start()
throws Exception
- Specified by:
start
in interface org.kuali.rice.core.api.lifecycle.Lifecycle
- Overrides:
start
in class org.kuali.rice.core.api.lifecycle.BaseLifecycle
- Throws:
Exception
isTestTableInSchema
protected Boolean isTestTableInSchema(DataSource dataSource)
verifyTestEnvironment
protected void verifyTestEnvironment(DataSource dataSource)
clearTables
protected void clearTables(org.springframework.transaction.PlatformTransactionManager transactionManager,
DataSource dataSource,
String schemaName)
getTablesToClear
public List<String> getTablesToClear()
getAlternativeTablesToClear
public List<String> getAlternativeTablesToClear()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.