Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » core » transaction » [javadoc | source]
org.apache.openejb.core.transaction
public interface: BeanTransactionPolicy [javadoc | source]

All Implemented Interfaces:
    TransactionPolicy

All Known Implementing Classes:
    SpringBeanTransactionPolicy, TxBeanManaged

BeanTransactionPolicy is an extension to the TransactionPolicy which provides operations for controlling a JEE bean managed transaction.
Nested Class Summary:
interface  BeanTransactionPolicy.SuspendedTransaction  Represents a suspended transaction. 
Method from org.apache.openejb.core.transaction.BeanTransactionPolicy Summary:
getUserTransaction,   resumeUserTransaction,   suspendUserTransaction
Method from org.apache.openejb.core.transaction.BeanTransactionPolicy Detail:
 public UserTransaction getUserTransaction()
    Gets the UserTransaction the bean uses to manage the transaction.
 public  void resumeUserTransaction(SuspendedTransaction suspendedTransaction) throws SystemException
    Resumes the transaction contained in the suspended transaction token. After this method completes the transaction will be resumes or if there is a problem it will be rolled back.
 public SuspendedTransaction suspendUserTransaction() throws SystemException
    Syspends the bean managed transaction. This is mainly used by stateful session beans which are required to maintain the bean managed transaction between calls. After this method completes the transaction will be suspended or if there is a problem it will be rolled back.