|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.transaction.controller.AbstractTransactionController
public abstract class AbstractTransactionController
An abstract class for TransactionController
.
Constructor Summary | |
---|---|
AbstractTransactionController()
|
Method Summary | |
---|---|
protected Object |
execute(TransactionAction action)
Executes the action |
protected abstract boolean |
hasTransaction()
Returns true if the current thread has a transaction. |
Object |
mandatory(TransactionAction action)
Executes the action within a transaction. |
Object |
never(TransactionAction action)
If the client is associated with a transaction, the controller throws a RemoteException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.slim3.transaction.controller.TransactionController |
---|
notSupported, required, requiresNew, setRollbackOnly |
Constructor Detail |
---|
public AbstractTransactionController()
Method Detail |
---|
public Object mandatory(TransactionAction action) throws Exception
TransactionController
mandatory
in interface TransactionController
action
- the called back action
TransactionRequiredException
- if the client is not associated with a transaction
Exception
- if an exception is encounteredpublic Object never(TransactionAction action) throws Exception
TransactionController
never
in interface TransactionController
action
- the action
RemoteException
- if the client is associated with a transaction
Exception
- if an exception is encounteredprotected abstract boolean hasTransaction() throws Exception
Exception
- if an exception is encounteredUserTransaction.getStatus()
protected Object execute(TransactionAction action) throws Exception
action
- the action
Exception
- if an exception is encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |