org.springframework.jms.connection
Class JmsTransactionManager.JmsTransactionObject
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceHolder
private JmsResourceHolder resourceHolder
JmsTransactionManager.JmsTransactionObject
private JmsTransactionManager.JmsTransactionObject()
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