Class TransactionConfigurationAttributes
- java.lang.Object
- org.springframework.test.context.transaction.TransactionConfigurationAttributes
@Deprecated public class TransactionConfigurationAttributes extends Object
Deprecated.As of Spring Framework 4.2, this class is officially deprecated and will be removed when@TransactionConfigurationis removed.Configuration attributes for configuring transactional tests.- Since:
- 2.5
- Author:
- Sam Brannen, Juergen Hoeller
- See Also:
TransactionConfiguration
Constructor Summary
Constructors Constructor Description TransactionConfigurationAttributes()Deprecated.Construct a newTransactionConfigurationAttributesinstance using an empty string for the bean name of thePlatformTransactionManagerandtruefor the default rollback flag.TransactionConfigurationAttributes(String transactionManagerName, boolean defaultRollback)Deprecated.Construct a newTransactionConfigurationAttributesinstance from the supplied arguments.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetTransactionManagerName()Deprecated.Get the bean name of thePlatformTransactionManagerthat is to be used to drive test-managed transactions.booleanisDefaultRollback()Deprecated.Whether test-managed transactions should be rolled back by default.StringtoString()Deprecated.
Constructor Detail
TransactionConfigurationAttributes
public TransactionConfigurationAttributes()
Deprecated.Construct a newTransactionConfigurationAttributesinstance using an empty string for the bean name of thePlatformTransactionManagerandtruefor the default rollback flag.
TransactionConfigurationAttributes
public TransactionConfigurationAttributes(String transactionManagerName, boolean defaultRollback)
Deprecated.Construct a newTransactionConfigurationAttributesinstance from the supplied arguments.- Parameters:
transactionManagerName- the bean name of thePlatformTransactionManagerthat is to be used to drive test-managed transactionsdefaultRollback- whether or not test-managed transactions should be rolled back by default
Method Detail
getTransactionManagerName
public final String getTransactionManagerName()
Deprecated.Get the bean name of thePlatformTransactionManagerthat is to be used to drive test-managed transactions.
isDefaultRollback
public final boolean isDefaultRollback()
Deprecated.Whether test-managed transactions should be rolled back by default.- Returns:
- the default rollback flag