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
SystemException
public 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.SystemException
public void commit(boolean report_heuristics) throws org.omg.CosTransactions.NoTransaction, org.omg.CosTransactions.HeuristicMixed, org.omg.CosTransactions.HeuristicHazard, WrongTransaction, SystemException
org.omg.CosTransactions.NoTransaction
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard
WrongTransaction
SystemException
public void rollback() throws org.omg.CosTransactions.NoTransaction, WrongTransaction, SystemException
org.omg.CosTransactions.NoTransaction
WrongTransaction
SystemException
public void set_timeout(int seconds) throws SystemException
SystemException
public int get_timeout() throws SystemException
SystemException
public int getTimeout() throws SystemException
SystemException
public 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.SystemException
public 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.SystemException
public 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.SystemException
public 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.SystemException
public org.omg.CosTransactions.Control control() throws org.omg.CosTransactions.NoTransaction, SystemException
org.omg.CosTransactions.NoTransaction
SystemException
public void suspend() throws org.omg.CosTransactions.NoTransaction, 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.WrongTransaction
SystemException
public void resume() throws org.omg.CosTransactions.InvalidControl, SystemException
org.omg.CosTransactions.InvalidControl
- if this transaction is invalid.SystemException
public org.omg.CosTransactions.Status get_status() throws SystemException
SystemException
public void rollbackOnly() throws SystemException, org.omg.CosTransactions.NoTransaction
SystemException
org.omg.CosTransactions.NoTransaction
public Uid get_uid()
protected final boolean validTransaction()
protected final org.omg.CosTransactions.Status getStatus()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.