org.kuali.rice.test
Class TransactionalLifecycle

java.lang.Object
  extended by org.kuali.rice.test.TransactionalLifecycle
All Implemented Interfaces:
Lifecycle

public class TransactionalLifecycle
extends Object
implements Lifecycle

A lifecycle for testing with database transactional rollback.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String DEFAULT_TRANSACTION_MANAGER_NAME
          Name of the transaction manager to pull from the GlobalResourceLoader.
 
Constructor Summary
TransactionalLifecycle()
           
TransactionalLifecycle(String transactionManagerName)
           
 
Method Summary
 boolean isStarted()
           
 void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TRANSACTION_MANAGER_NAME

public static final String DEFAULT_TRANSACTION_MANAGER_NAME
Name of the transaction manager to pull from the GlobalResourceLoader. This will most likely be a Spring bean name.

See Also:
Constant Field Values
Constructor Detail

TransactionalLifecycle

public TransactionalLifecycle(String transactionManagerName)

TransactionalLifecycle

public TransactionalLifecycle()
Method Detail

setTransactionManager

public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Lifecycle

start

public void start()
           throws Exception
Specified by:
start in interface Lifecycle
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Lifecycle
Throws:
Exception


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.