org.springframework.jms.connection
Class JmsTransactionManager.JmsTransactionObject

java.lang.Object
  extended by org.springframework.jms.connection.JmsTransactionManager.JmsTransactionObject
All Implemented Interfaces:
SmartTransactionObject
Enclosing class:
JmsTransactionManager

private static class JmsTransactionManager.JmsTransactionObject
extends java.lang.Object
implements SmartTransactionObject

JMS transaction object, representing a JmsResourceHolder. Used as transaction object by JmsTransactionManager.

See Also:
JmsResourceHolder

Field Summary
private  JmsResourceHolder resourceHolder
           
 
Constructor Summary
private JmsTransactionManager.JmsTransactionObject()
           
 
Method Summary
 void flush()
          Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.
 JmsResourceHolder getResourceHolder()
           
 boolean isRollbackOnly()
          Return whether the transaction is internally marked as rollback-only.
 void setResourceHolder(JmsResourceHolder resourceHolder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceHolder

private JmsResourceHolder resourceHolder
Constructor Detail

JmsTransactionManager.JmsTransactionObject

private JmsTransactionManager.JmsTransactionObject()
Method Detail

setResourceHolder

public void setResourceHolder(JmsResourceHolder resourceHolder)

getResourceHolder

public JmsResourceHolder getResourceHolder()

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:
javax.transaction.UserTransaction#getStatus, javax.transaction.Status#STATUS_MARKED_ROLLBACK

flush

public void flush()
Description copied from interface: SmartTransactionObject
Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.

Specified by:
flush in interface SmartTransactionObject