|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.transaction.controller.AbstractTransactionController
org.slim3.transaction.websphere.WebSphereTransactionController
public class WebSphereTransactionController
An implementation class for TransactionController
using WebSphere
UOWManager.
Nested Class Summary | |
---|---|
protected class |
WebSphereTransactionController.UOWActionImpl
An implementation class for UOWAction. |
Field Summary | |
---|---|
protected com.ibm.wsspi.uow.UOWManager |
uowManager
The UOWManager. |
Constructor Summary | |
---|---|
WebSphereTransactionController(com.ibm.wsspi.uow.UOWManager uowManager)
Constructor. |
Method Summary | |
---|---|
protected boolean |
hasTransaction()
Returns true if the current thread has a transaction. |
Object |
notSupported(TransactionAction action)
Executes the action within a transaction. |
Object |
required(TransactionAction action)
Executes the action within a transaction. |
Object |
requiresNew(TransactionAction action)
Executes the action within a transaction. |
protected Object |
runUnderUOW(int transactionType,
boolean joinTransaction,
TransactionAction action)
Runs the action under UOWManager. |
void |
setRollbackOnly()
Modify the transaction such that the transaction is rolled back. |
Methods inherited from class org.slim3.transaction.controller.AbstractTransactionController |
---|
execute, mandatory, never |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final com.ibm.wsspi.uow.UOWManager uowManager
Constructor Detail |
---|
public WebSphereTransactionController(com.ibm.wsspi.uow.UOWManager uowManager) throws NullPointerException
uowManager
- the UOWManager
NullPointerException
- if the uowManager parameter is nullMethod Detail |
---|
public Object required(TransactionAction action) throws Exception
TransactionController
action
- the action
NotSupportedException
- if nested transaction is not supported
Exception
- if an exception is encounteredpublic Object requiresNew(TransactionAction action) throws Exception
TransactionController
action
- the action
Exception
- if an exception is encounteredpublic Object notSupported(TransactionAction action) throws Exception
TransactionController
action
- the action
Exception
- if an exception is encounteredpublic void setRollbackOnly()
TransactionController
protected Object runUnderUOW(int transactionType, boolean joinTransaction, TransactionAction action) throws Exception
transactionType
- the transaction typejoinTransaction
- whether the client joins a transactionaction
- the action
Exception
- if an exception is encounteredprotected boolean hasTransaction()
AbstractTransactionController
hasTransaction
in class AbstractTransactionController
UserTransaction.getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |