org.kuali.hr.time.util
Class ClearDatabaseLifecycle

java.lang.Object
  extended by org.kuali.rice.core.api.lifecycle.BaseLifecycle
      extended by 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


Field Summary
protected static org.apache.log4j.Logger LOG
           
static Integer START_CLEAR_ID
           
static String TEST_TABLE_NAME
           
 
Constructor Summary
ClearDatabaseLifecycle()
           
 
Method Summary
protected  void clearTables(org.springframework.transaction.PlatformTransactionManager transactionManager, DataSource dataSource, String schemaName)
           
 List<String> getAlternativeTablesToClear()
           
 List<String> getTablesToClear()
           
protected  Boolean isTestTableInSchema(DataSource dataSource)
           
 void start()
           
protected  void verifyTestEnvironment(DataSource dataSource)
           
 
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
 

Field Detail

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
Constructor Detail

ClearDatabaseLifecycle

public ClearDatabaseLifecycle()
Method Detail

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-2012 The Kuali Foundation. All Rights Reserved.