Package com.arjuna.ats.jts.extensions
Class TopLevelTransaction
java.lang.Object
com.arjuna.ats.jts.extensions.AtomicTransaction
com.arjuna.ats.jts.extensions.TopLevelTransaction
Creates a nested top-level transaction.
- Since:
- JTS 1.0.
- Version:
- $Id: TopLevelTransaction.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
Methods inherited from class com.arjuna.ats.jts.extensions.AtomicTransaction
control, equals, get_status, get_timeout, get_transaction_name, get_txcontext, get_uid, getStatus, getTimeout, hashCode, registerResource, registerSubtranAware, registerSynchronization, resume, rollbackOnly, set_timeout, suspend, validTransaction
-
Constructor Details
-
TopLevelTransaction
public TopLevelTransaction()
-
-
Method Details
-
finalize
public void finalize()- Overrides:
finalize
in classAtomicTransaction
-
begin
If nested top-level transaction, save current context for resumption later.- Overrides:
begin
in classAtomicTransaction
- Throws:
SubtransactionsUnavailable
- if subtransactions have been disabled, and the invoking thread already has a transaction associated with it.org.omg.CORBA.SystemException
-
commit
public void commit(boolean report_heuristics) throws org.omg.CORBA.SystemException, NoTransaction, HeuristicMixed, HeuristicHazard, org.omg.CORBA.WrongTransaction - Overrides:
commit
in classAtomicTransaction
- Throws:
org.omg.CORBA.SystemException
NoTransaction
HeuristicMixed
HeuristicHazard
org.omg.CORBA.WrongTransaction
-
rollback
public void rollback() throws org.omg.CORBA.SystemException, NoTransaction, org.omg.CORBA.WrongTransaction- Overrides:
rollback
in classAtomicTransaction
- Throws:
org.omg.CORBA.SystemException
NoTransaction
org.omg.CORBA.WrongTransaction
-