The Spring Framework

org.springframework.test.context.transaction
Class TransactionConfigurationAttributes

java.lang.Object
  extended by org.springframework.test.context.transaction.TransactionConfigurationAttributes

public class TransactionConfigurationAttributes
extends Object

Configuration attributes for configuring transactional tests.

Since:
2.5
Author:
Sam Brannen, Juergen Hoeller
See Also:
TransactionConfiguration

Constructor Summary
TransactionConfigurationAttributes(String transactionManagerName, boolean defaultRollback)
          Constructs a new TransactionConfigurationAttributes instance from the supplied arguments.
 
Method Summary
 String getTransactionManagerName()
          Gets the bean name of the PlatformTransactionManager that is to be used to drive transactions.
 boolean isDefaultRollback()
          Whether or not transactions should be rolled back by default.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionConfigurationAttributes

public TransactionConfigurationAttributes(String transactionManagerName,
                                          boolean defaultRollback)
Constructs a new TransactionConfigurationAttributes instance from the supplied arguments.

Parameters:
transactionManagerName - The bean name of the PlatformTransactionManager that is to be used to drive transactions.
defaultRollback - Boolean flag denoting whether or not transactions should be rolled back by default.
Throws:
IllegalArgumentException - if the supplied transaction manager bean name is null.
Method Detail

getTransactionManagerName

public final String getTransactionManagerName()
Gets the bean name of the PlatformTransactionManager that is to be used to drive transactions.

Returns:
The transaction manager bean name.

isDefaultRollback

public final boolean isDefaultRollback()
Whether or not transactions should be rolled back by default.

Returns:
The default rollback flag.

toString

public String toString()
Overrides:
toString in class Object

The Spring Framework

Copyright © 2002-2007 The Spring Framework.