org.springframework.test.context.transaction
Class TransactionConfigurationAttributes
java.lang.Object
org.springframework.test.context.transaction.TransactionConfigurationAttributes
public class TransactionConfigurationAttributes
- extends java.lang.Object
Configuration attributes for configuring transactional tests.
- Since:
- 2.5
- Author:
- Sam Brannen, Juergen Hoeller
- See Also:
TransactionConfiguration
Constructor Summary |
TransactionConfigurationAttributes(java.lang.String transactionManagerName,
boolean defaultRollback)
Construct a new TransactionConfigurationAttributes instance from the
supplied arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
transactionManagerName
private final java.lang.String transactionManagerName
defaultRollback
private final boolean defaultRollback
TransactionConfigurationAttributes
public TransactionConfigurationAttributes(java.lang.String transactionManagerName,
boolean defaultRollback)
- Construct a new TransactionConfigurationAttributes instance from the
supplied arguments.
- Parameters:
transactionManagerName
- the bean name of the
PlatformTransactionManager
that is to be used to drive transactionsdefaultRollback
- whether or not transactions should be rolled back by default
getTransactionManagerName
public final java.lang.String getTransactionManagerName()
- Get the bean name of the
PlatformTransactionManager
that is to
be used to drive transactions.
isDefaultRollback
public final boolean isDefaultRollback()
- Whether or not transactions should be rolled back by default.
- Returns:
- the default rollback flag
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object