public class TopLevelTransaction extends AtomicTransaction
_theAction, _theStatus, _timeout, NESTED, TOP_LEVEL| Constructor and Description |
|---|
TopLevelTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
If nested top-level transaction, save current context for resumption
later.
|
void |
commit(boolean report_heuristics) |
void |
finalize() |
void |
rollback() |
control, equals, get_status, get_timeout, get_transaction_name, get_txcontext, get_uid, getStatus, getTimeout, hashCode, registerResource, registerSubtranAware, registerSynchronization, resume, rollbackOnly, set_timeout, suspend, validTransactionpublic void finalize()
finalize in class AtomicTransactionpublic void begin()
throws SystemException,
org.omg.CosTransactions.SubtransactionsUnavailable
begin in class AtomicTransactionINVALID_TRANSACTION - if the transaction has already begun or has completed.org.omg.CosTransactions.SubtransactionsUnavailable - if subtransactions have been disabled, and the invoking
thread already has a transaction associated with it.SystemExceptionpublic void commit(boolean report_heuristics)
throws SystemException,
org.omg.CosTransactions.NoTransaction,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard,
WrongTransaction
commit in class AtomicTransactionSystemExceptionorg.omg.CosTransactions.NoTransactionorg.omg.CosTransactions.HeuristicMixedorg.omg.CosTransactions.HeuristicHazardWrongTransactionpublic void rollback()
throws SystemException,
org.omg.CosTransactions.NoTransaction,
WrongTransaction
rollback in class AtomicTransactionSystemExceptionorg.omg.CosTransactions.NoTransactionWrongTransactionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.