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@TransactionConfiguration
is 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 newTransactionConfigurationAttributes
instance using an empty string for the bean name of thePlatformTransactionManager
andtrue
for the default rollback flag.TransactionConfigurationAttributes(String transactionManagerName, boolean defaultRollback)
Deprecated.Construct a newTransactionConfigurationAttributes
instance from the supplied arguments.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getTransactionManagerName()
Deprecated.Get the bean name of thePlatformTransactionManager
that is to be used to drive test-managed transactions.boolean
isDefaultRollback()
Deprecated.Whether test-managed transactions should be rolled back by default.String
toString()
Deprecated.
Constructor Detail
TransactionConfigurationAttributes
public TransactionConfigurationAttributes()
Deprecated.Construct a newTransactionConfigurationAttributes
instance using an empty string for the bean name of thePlatformTransactionManager
andtrue
for the default rollback flag.
TransactionConfigurationAttributes
public TransactionConfigurationAttributes(String transactionManagerName, boolean defaultRollback)
Deprecated.Construct a newTransactionConfigurationAttributes
instance from the supplied arguments.- Parameters:
transactionManagerName
- the bean name of thePlatformTransactionManager
that 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 thePlatformTransactionManager
that 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