|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.kernel.TransactionProxyImpl
final class TransactionProxyImpl
This is a proxy that provides access to the currently active
Transaction and its owner. Because Services are
the only components outside of the kernel that should have visibility into
this state, they are the only components in the system that are provided
a reference to the usable proxy.
| Constructor Summary | |
|---|---|
TransactionProxyImpl()
This package-private constructor creates a new instance of TransactionProxyImpl. |
|
| 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
TransactionProxyImpl()
TransactionProxyImpl. It is package-private so that
only the kernel components can create instances for access to the
current Transaction.
| Method Detail |
|---|
public Transaction getCurrentTransaction()
getCurrentTransaction in interface TransactionProxyTransactionpublic boolean inTransaction()
true if there is a current transaction, even if the
transaction has been aborted.
inTransaction in interface TransactionProxytrue if there is a current transactionpublic Identity getCurrentOwner()
getCurrentOwner in interface TransactionProxyIdentitypublic <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.
getService in interface TransactionProxyT - the type of the Servicetype - the Class of the requested Service
Service
|
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 | |||||||||