|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionController
An interface to control transaction.
| Method Summary | |
|---|---|
Object |
mandatory(TransactionAction callback)
Executes the action within a transaction. |
Object |
never(TransactionAction action)
If the client is associated with a transaction, the controller throws a RemoteException. |
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. |
void |
setRollbackOnly()
Modify the transaction such that the transaction is rolled back. |
| Method Detail |
|---|
Object required(TransactionAction action)
throws NotSupportedException,
Exception
action - the action
NotSupportedException - if nested transaction is not supported
Exception - if an exception is encountered
Object requiresNew(TransactionAction action)
throws Exception
action - the action
Exception - if an exception is encountered
Object mandatory(TransactionAction callback)
throws TransactionRequiredException,
Exception
callback - the called back action
TransactionRequiredException - if the client is not associated with a transaction
Exception - if an exception is encountered
Object notSupported(TransactionAction action)
throws Exception
action - the action
Exception - if an exception is encountered
Object never(TransactionAction action)
throws RemoteException,
Exception
action - the action
RemoteException - if the client is associated with a transaction
Exception - if an exception is encounteredvoid setRollbackOnly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||