Class AtomicTransaction
java.lang.Object
com.arjuna.ats.jts.extensions.AtomicTransaction
com.arjuna.ats.internal.jta.transaction.jts.AtomicTransaction
- Direct Known Subclasses:
SubordinateAtomicTransaction
An extension of the AtomicTransaction class so we can create new instances
without having to create a new transaction. Useful for when we work with
imported transactions.
- Since:
- JTS 3.0.
- Version:
- $Id: AtomicTransaction.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark_little@hp.com)
-
Field Summary
Fields inherited from class com.arjuna.ats.jts.extensions.AtomicTransaction
_theAction, _theStatus, _timeout, NESTED, TOP_LEVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Does not change thread-to-tx association as base class rollback does.void
end
(boolean report_heuristics) Does not change thread-to-tx association as base class commit does.final Xid
get_xid
(boolean branch) final com.arjuna.ats.internal.jts.ControlWrapper
Methods inherited from class com.arjuna.ats.jts.extensions.AtomicTransaction
begin, commit, control, equals, finalize, get_status, get_timeout, get_transaction_name, get_txcontext, get_uid, getStatus, getTimeout, hashCode, registerResource, registerSubtranAware, registerSynchronization, resume, rollback, rollbackOnly, set_timeout, suspend, validTransaction
-
Constructor Details
-
AtomicTransaction
public AtomicTransaction() -
AtomicTransaction
public AtomicTransaction(com.arjuna.ats.internal.jts.ControlWrapper tx)
-
-
Method Details
-
end
public void end(boolean report_heuristics) throws NoTransaction, HeuristicMixed, HeuristicHazard, org.omg.CORBA.WrongTransaction, org.omg.CORBA.SystemException Does not change thread-to-tx association as base class commit does.- Throws:
NoTransaction
HeuristicMixed
HeuristicHazard
org.omg.CORBA.WrongTransaction
org.omg.CORBA.SystemException
-
abort
public void abort() throws NoTransaction, org.omg.CORBA.WrongTransaction, org.omg.CORBA.SystemExceptionDoes not change thread-to-tx association as base class rollback does.- Throws:
NoTransaction
org.omg.CORBA.WrongTransaction
org.omg.CORBA.SystemException
-
getControlWrapper
public final com.arjuna.ats.internal.jts.ControlWrapper getControlWrapper() -
get_xid
- Throws:
org.omg.CORBA.SystemException
-