protected AtomicTransaction (ControlWrapper tx) { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::AtomicTransaction ()"); } _theAction = tx; _theStatus = getStatus(); /* * Once a transaction is created there is no way to get its timeout. So, * we use the timeout associated with the current thread, since that is * most likely to be the right value. */ _timeout = get_timeout(); }
/** * @return the status of this transaction. */ public org.omg.CosTransactions.Status get_status () throws SystemException { _theStatus = getStatus(); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::get_status called for " + _theAction + " returning " + Utility.stringStatus(_theStatus)); } return _theStatus; }
protected AtomicTransaction (ControlWrapper tx) { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::AtomicTransaction ()"); } _theAction = tx; _theStatus = getStatus(); /* * Once a transaction is created there is no way to get its timeout. So, * we use the timeout associated with the current thread, since that is * most likely to be the right value. */ _timeout = get_timeout(); }
/** * @return the status of this transaction. */ public org.omg.CosTransactions.Status get_status () throws SystemException { _theStatus = getStatus(); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::get_status called for " + _theAction + " returning " + Utility.stringStatus(_theStatus)); } return _theStatus; }
_theStatus = getStatus();
public void finalize () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction.finalize ()"); } if (_theAction != null) { if (getStatus() == Status.StatusActive) { jtsLogger.i18NLogger.warn_extensions_atscope("AtomicTransaction.finalize", get_uid()); String name = null; try { name = get_transaction_name(); } catch (SystemException ex) { jtsLogger.i18NLogger.warn_extensions_namefail(ex); } try { rollback(); // tidies up for us. } catch (NoTransaction e) { jtsLogger.i18NLogger.warn_extensions_abortfailnoexist(name); } catch (Exception e) { jtsLogger.i18NLogger.warn_extensions_abortfail(name); } } } }
_theStatus = getStatus();
if (getStatus() == Status.StatusActive)