org.springframework.transaction.jta
Class JtaTransactionObject

java.lang.Object
  extended byorg.springframework.transaction.jta.JtaTransactionObject
All Implemented Interfaces:
SmartTransactionObject

public class JtaTransactionObject
extends Object
implements SmartTransactionObject

JTA transaction object, representing a UserTransaction. Used as transaction object by JtaTransactionManager.

Note: This is an SPI class, not intended to be used by applications.

Since:
1.1
Author:
Juergen Hoeller
See Also:
JtaTransactionManager, UserTransaction

Constructor Summary
JtaTransactionObject(UserTransaction userTransaction)
           
 
Method Summary
 UserTransaction getUserTransaction()
           
 boolean isRollbackOnly()
          Return whether the transaction is internally marked as rollback-only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JtaTransactionObject

public JtaTransactionObject(UserTransaction userTransaction)
Method Detail

getUserTransaction

public UserTransaction getUserTransaction()

isRollbackOnly

public boolean isRollbackOnly()
Description copied from interface: SmartTransactionObject
Return whether the transaction is internally marked as rollback-only. Can, for example, check the JTA UserTransaction.

Specified by:
isRollbackOnly in interface SmartTransactionObject
See Also:
UserTransaction.getStatus(), Status.STATUS_MARKED_ROLLBACK


Copyright (C) 2003-2004 The Spring Framework Project.