|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionProxy
This is a proxy that provides access to the current transaction and
its owner. Note that there is only ever one instance of
TransactionProxy.
| Method Summary | ||
|---|---|---|
Identity |
getCurrentOwner()
Returns the owner of the task that is executing the current transaction. |
|
Transaction |
getCurrentTransaction()
Returns the current transaction state. |
|
|
getService(Class<T> type)
Returns a Service, based on the given type, that is
available in the context of the current Transaction. |
|
boolean |
inTransaction()
Returns true if there is a current transaction, even if the
transaction has been aborted. |
|
| Method Detail |
|---|
Transaction getCurrentTransaction()
Transaction
TransactionNotActiveException - if there is no current, active
transaction, or if the current
transaction has already started
preparing or aborting
TransactionTimeoutException - if the current transaction has
timed outboolean inTransaction()
true if there is a current transaction, even if the
transaction has been aborted.
true if there is a current transactionIdentity getCurrentOwner()
Identity<T extends Service> T getService(Class<T> type)
Service, based on the given type, that is
available in the context of the current Transaction. If
the type is unknown, or if there is more than one Service
of the given type, MissingResourceException is thrown.
T - the type of the Servicetype - the Class of the requested Service
Service
MissingResourceException - if there wasn't exactly one match to
the requested type
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||