类 TransactionConfigurationAttributes
- java.lang.Object
- org.springframework.test.context.transaction.TransactionConfigurationAttributes
@Deprecated public class TransactionConfigurationAttributes extends Object
已过时。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.- 从以下版本开始:
- 2.5
- 作者:
- Sam Brannen, Juergen Hoeller
- 另请参阅:
TransactionConfiguration
构造器概要
构造器 构造器 说明 TransactionConfigurationAttributes()
已过时。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)
已过时。Construct a newTransactionConfigurationAttributes
instance from the supplied arguments.
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 String
getTransactionManagerName()
已过时。Get the bean name of thePlatformTransactionManager
that is to be used to drive test-managed transactions.boolean
isDefaultRollback()
已过时。Whether test-managed transactions should be rolled back by default.String
toString()
已过时。
构造器详细资料
TransactionConfigurationAttributes
public TransactionConfigurationAttributes()
已过时。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)
已过时。Construct a newTransactionConfigurationAttributes
instance from the supplied arguments.- 参数:
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
方法详细资料
getTransactionManagerName
public final String getTransactionManagerName()
已过时。Get the bean name of thePlatformTransactionManager
that is to be used to drive test-managed transactions.
isDefaultRollback
public final boolean isDefaultRollback()
已过时。Whether test-managed transactions should be rolled back by default.- 返回:
- the default rollback flag