|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.spring.SpringTransactionPolicy
org.apache.openejb.spring.SpringBeanTransactionPolicy
public class SpringBeanTransactionPolicy
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.openejb.core.transaction.BeanTransactionPolicy |
---|
BeanTransactionPolicy.SuspendedTransaction |
Nested classes/interfaces inherited from interface org.apache.openejb.core.transaction.TransactionPolicy |
---|
TransactionPolicy.TransactionSynchronization |
Field Summary |
---|
Fields inherited from class org.apache.openejb.spring.SpringTransactionPolicy |
---|
transactionManager, type |
Constructor Summary | |
---|---|
SpringBeanTransactionPolicy(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
Method Summary | |
---|---|
protected org.springframework.transaction.support.DefaultTransactionStatus |
getTransactionStatus()
|
javax.transaction.UserTransaction |
getUserTransaction()
Gets the UserTransaction the bean uses to manage the transaction. |
void |
resumeUserTransaction(BeanTransactionPolicy.SuspendedTransaction suspendedTransaction)
Resumes the transaction contained in the suspended transaction token. |
BeanTransactionPolicy.SuspendedTransaction |
suspendUserTransaction()
Syspends the bean managed transaction. |
Methods inherited from class org.apache.openejb.spring.SpringTransactionPolicy |
---|
commit, enlistResource, getResource, getTransactionType, isClientTransaction, isNewTransaction, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, setRollbackOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openejb.core.transaction.TransactionPolicy |
---|
commit, enlistResource, getResource, getTransactionType, isClientTransaction, isNewTransaction, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, setRollbackOnly |
Constructor Detail |
---|
public SpringBeanTransactionPolicy(org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail |
---|
protected org.springframework.transaction.support.DefaultTransactionStatus getTransactionStatus()
getTransactionStatus
in class SpringTransactionPolicy
public BeanTransactionPolicy.SuspendedTransaction suspendUserTransaction() throws SystemException
BeanTransactionPolicy
suspendUserTransaction
in interface BeanTransactionPolicy
SystemException
- if there was a problem suspending the
transactionpublic void resumeUserTransaction(BeanTransactionPolicy.SuspendedTransaction suspendedTransaction) throws SystemException
BeanTransactionPolicy
resumeUserTransaction
in interface BeanTransactionPolicy
suspendedTransaction
- the transaction to resume; not null
SystemException
- if there was a problem resuming the transactionpublic javax.transaction.UserTransaction getUserTransaction()
BeanTransactionPolicy
getUserTransaction
in interface BeanTransactionPolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |