org.springframework.test.context.transaction
Class TransactionConfigurationAttributes

java.lang.Object
  extended by 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

Field Summary
private  boolean defaultRollback
           
private  java.lang.String transactionManagerName
           
 
Constructor Summary
TransactionConfigurationAttributes(java.lang.String transactionManagerName, boolean defaultRollback)
          Construct a new TransactionConfigurationAttributes instance from the supplied arguments.
 
Method Summary
 java.lang.String getTransactionManagerName()
          Get 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transactionManagerName

private final java.lang.String transactionManagerName

defaultRollback

private final boolean defaultRollback
Constructor Detail

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 transactions
defaultRollback - whether or not transactions should be rolled back by default
Method Detail

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