public class AtomicTransaction extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.arjuna.ats.internal.jts.ControlWrapper |
_theAction |
protected org.omg.CosTransactions.Status |
_theStatus |
protected int |
_timeout |
static int |
NESTED |
static int |
TOP_LEVEL
The types of transactions which can be created.
|
| Modifier | Constructor and Description |
|---|---|
|
AtomicTransaction()
Create a new transaction.
|
protected |
AtomicTransaction(com.arjuna.ats.internal.jts.ControlWrapper tx) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Start the transaction.
|
void |
commit(boolean report_heuristics) |
org.omg.CosTransactions.Control |
control() |
boolean |
equals(Object obj) |
void |
finalize() |
org.omg.CosTransactions.Status |
get_status() |
int |
get_timeout() |
String |
get_transaction_name() |
org.omg.CosTransactions.PropagationContext |
get_txcontext() |
Uid |
get_uid() |
protected org.omg.CosTransactions.Status |
getStatus() |
int |
getTimeout() |
int |
hashCode() |
org.omg.CosTransactions.RecoveryCoordinator |
registerResource(org.omg.CosTransactions.Resource r)
Register the specified resource with this transaction.
|
void |
registerSubtranAware(org.omg.CosTransactions.SubtransactionAwareResource r)
Register the specified subtransaction aware resource with this
transaction.
|
void |
registerSynchronization(org.omg.CosTransactions.Synchronization sync)
Register the specified synchronization with this transaction.
|
void |
resume()
Resume this transaction.
|
void |
rollback() |
void |
rollbackOnly()
Allow action commit to be supressed.
|
void |
set_timeout(int seconds)
Set the transaction timeout.
|
void |
suspend()
Suspend this transaction from the current thread.
|
protected boolean |
validTransaction()
If this transaction current? Assume we have checked that we are actually
a transaction!
If not valid then abort this transaction here.
|
public static final int TOP_LEVEL
public static final int NESTED
protected com.arjuna.ats.internal.jts.ControlWrapper _theAction
protected org.omg.CosTransactions.Status _theStatus
protected int _timeout
public AtomicTransaction()
protected AtomicTransaction(com.arjuna.ats.internal.jts.ControlWrapper tx)
public String get_transaction_name() throws SystemException
SystemExceptionpublic void begin()
throws org.omg.CosTransactions.SubtransactionsUnavailable,
SystemException
org.omg.CosTransactions.SubtransactionsUnavailable - if subtransactions have been disabled, and the invoking
thread already has a transaction associated with it.INVALID_TRANSACTION - if the transaction has already begun or has completed.SystemExceptionpublic void commit(boolean report_heuristics)
throws org.omg.CosTransactions.NoTransaction,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard,
org.omg.CosTransactions.WrongTransaction,
SystemException
org.omg.CosTransactions.NoTransactionorg.omg.CosTransactions.HeuristicMixedorg.omg.CosTransactions.HeuristicHazardorg.omg.CosTransactions.WrongTransactionSystemExceptionpublic void rollback()
throws org.omg.CosTransactions.NoTransaction,
org.omg.CosTransactions.WrongTransaction,
SystemException
org.omg.CosTransactions.NoTransactionorg.omg.CosTransactions.WrongTransactionSystemExceptionpublic void set_timeout(int seconds)
throws SystemException
SystemExceptionpublic int get_timeout()
throws SystemException
SystemExceptionpublic int getTimeout()
throws SystemException
SystemExceptionpublic org.omg.CosTransactions.PropagationContext get_txcontext()
throws org.omg.CosTransactions.Inactive,
SystemException
org.omg.CosTransactions.Inactive - if the current transaction is no longer in the active
phase.SystemExceptionpublic org.omg.CosTransactions.RecoveryCoordinator registerResource(org.omg.CosTransactions.Resource r)
throws org.omg.CosTransactions.Inactive,
SystemException
org.omg.CosTransactions.Inactive - if the current transaction is no longer in the active
phase.SystemExceptionpublic void registerSubtranAware(org.omg.CosTransactions.SubtransactionAwareResource r)
throws org.omg.CosTransactions.Inactive,
org.omg.CosTransactions.NotSubtransaction,
SystemException
org.omg.CosTransactions.Inactive - if this transaction is no longer in the active phase.org.omg.CosTransactions.NotSubtransaction - if this transaction is not a subtransaction.SystemExceptionpublic void registerSynchronization(org.omg.CosTransactions.Synchronization sync)
throws org.omg.CosTransactions.Inactive,
org.omg.CosTransactions.SynchronizationUnavailable,
SystemException
org.omg.CosTransactions.Inactive - if this transaction is no longer in the active phase.org.omg.CosTransactions.SynchronizationUnavailable - if this transaction it not a top-level transaction.SystemExceptionpublic org.omg.CosTransactions.Control control()
throws org.omg.CosTransactions.NoTransaction,
SystemException
org.omg.CosTransactions.NoTransactionSystemExceptionpublic void suspend()
throws org.omg.CosTransactions.NoTransaction,
org.omg.CosTransactions.WrongTransaction,
SystemException
org.omg.CosTransactions.NoTransaction - if there is no current transaction.org.omg.CORBA.WRONG_TRANSACTION - if the transaction associated with the current thread is
different from this thread.org.omg.CosTransactions.WrongTransactionSystemExceptionpublic void resume()
throws org.omg.CosTransactions.InvalidControl,
SystemException
org.omg.CosTransactions.InvalidControl - if this transaction is invalid.SystemExceptionpublic org.omg.CosTransactions.Status get_status()
throws SystemException
SystemExceptionpublic void rollbackOnly()
throws SystemException,
org.omg.CosTransactions.NoTransaction
SystemExceptionorg.omg.CosTransactions.NoTransactionpublic Uid get_uid()
protected final boolean validTransaction()
protected final org.omg.CosTransactions.Status getStatus()
Copyright © 2012. All Rights Reserved.