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_connection
clone, 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_override
public 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
NoTransaction
SystemException
public void rollback_only() throws NoTransaction, SystemException
NoTransaction
SystemException
public Status get_status() throws SystemException
SystemException
public String get_transaction_name() throws SystemException
SystemException
public void set_timeout(int seconds) throws SystemException
SystemException
public final int get_timeout() throws SystemException
SystemException
public void setCheckedAction(CheckedAction ca) throws SystemException
setCheckedAction
in interface Current
SystemException
public CheckedAction getCheckedAction() throws SystemException
getCheckedAction
in interface Current
SystemException
public Control get_control() throws SystemException
SystemException
public Control suspend() throws SystemException
SystemException
public void resume(Control which) throws InvalidControl, SystemException
InvalidControl
SystemException
public final ContextManager contextManager()
public void resumeImple(ControlImple which) throws InvalidControl, SystemException
InvalidControl
SystemException
public void resumeWrapper(ControlWrapper which) throws InvalidControl, SystemException
InvalidControl
SystemException
public ControlWrapper suspendWrapper() throws SystemException
SystemException
public ControlWrapper getControlWrapper() throws SystemException
SystemException
Copyright © 2021 JBoss by Red Hat. All rights reserved.