public class CurrentImple extends LocalObject implements Current, Current
| Modifier and Type | Field and Description |
|---|---|
protected static ContextManager |
_theManager |
static int |
TX_ABORTED |
static int |
TX_BEGUN |
static int |
TX_COMMITTED |
static int |
TX_RESUMED |
static int |
TX_SUSPENDED |
| Constructor and Description |
|---|
CurrentImple() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit(boolean report_heuristics)
It's not possible to commit/abort out of order using the current
interface.
|
ContextManager |
contextManager()
Returns the internal context manager implementation.
|
Control |
get_control() |
Status |
get_status() |
int |
get_timeout() |
String |
get_transaction_name() |
CheckedAction |
getCheckedAction() |
ControlWrapper |
getControlWrapper() |
void |
resume(Control which)
To support checked transactions we can only resume if the action is local
or we received it implicitly.
|
void |
resumeImple(ControlImple which) |
void |
resumeWrapper(ControlWrapper which) |
void |
rollback_only()
If the transaction has already terminated (or is being terminated) then
throw INVALID_TRANSACTION.
|
void |
rollback()
If another thread has already terminated the transaction then: (i) if it
rolled back, we do nothing - could throw TransactionRequired of
INVALID_TRANSACTION, or NoTransaction.
|
void |
set_timeout(int seconds) |
void |
setCheckedAction(CheckedAction ca) |
Control |
suspend()
The spec.
|
ControlWrapper |
suspendWrapper() |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overridepublic static final int TX_BEGUN
public static final int TX_COMMITTED
public static final int TX_ABORTED
public static final int TX_SUSPENDED
public static final int TX_RESUMED
protected static ContextManager _theManager
public void begin()
throws SubtransactionsUnavailable,
SystemException
public void commit(boolean report_heuristics)
throws NoTransaction,
HeuristicMixed,
HeuristicHazard,
SystemException
public void rollback()
throws NoTransaction,
SystemException
NoTransactionSystemExceptionpublic void rollback_only()
throws NoTransaction,
SystemException
NoTransactionSystemExceptionpublic Status get_status() throws SystemException
SystemExceptionpublic String get_transaction_name() throws SystemException
SystemExceptionpublic void set_timeout(int seconds)
throws SystemException
SystemExceptionpublic final int get_timeout()
throws SystemException
SystemExceptionpublic void setCheckedAction(CheckedAction ca) throws SystemException
setCheckedAction in interface CurrentSystemExceptionpublic CheckedAction getCheckedAction() throws SystemException
getCheckedAction in interface CurrentSystemExceptionpublic Control get_control() throws SystemException
SystemExceptionpublic Control suspend() throws SystemException
SystemExceptionpublic void resume(Control which) throws InvalidControl, SystemException
InvalidControlSystemExceptionpublic final ContextManager contextManager()
public void resumeImple(ControlImple which) throws InvalidControl, SystemException
InvalidControlSystemExceptionpublic void resumeWrapper(ControlWrapper which) throws InvalidControl, SystemException
InvalidControlSystemExceptionpublic ControlWrapper suspendWrapper() throws SystemException
SystemExceptionpublic ControlWrapper getControlWrapper() throws SystemException
SystemExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.