public org.omg.CosTransactions.Status get_top_level_status () throws SystemException { if (rootAction != null) return determineStatus(rootAction); else return get_status(); }
public org.omg.CosTransactions.Status get_top_level_status () throws SystemException { if (rootAction != null) return determineStatus(rootAction); else return get_status(); }
public org.omg.CosTransactions.Status get_status () throws SystemException { Status s = determineStatus(this); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::get_status for " + get_uid() + " returning " + Utility.stringStatus(s)); } return s; }
public void rollback_only () throws SystemException, Inactive { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::rollback_only - called for " + get_uid()); } if (determineStatus(this) != Status.StatusPrepared) { if (!preventCommit()) { throw new INVALID_TRANSACTION( ExceptionCodes.INACTIVE_TRANSACTION, CompletionStatus.COMPLETED_NO); } } else throw new Inactive(); }
currentStatus = determineStatus(this);
public org.omg.CosTransactions.Status get_status () throws SystemException { Status s = determineStatus(this); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple::get_status for " + get_uid() + " returning " + Utility.stringStatus(s)); } return s; }
public Control create_subtransaction () throws SystemException, SubtransactionsUnavailable, Inactive { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::create_subtransaction - called for " + get_uid()); } if (determineStatus(this) != Status.StatusActive) throw new Inactive(); else { if (!_subtran) throw new SubtransactionsUnavailable(); else { if (controlHandle == null) throw new Inactive(); else return TransactionFactoryImple.create_subtransaction(controlHandle.getControl(), this); } } }
throw new BAD_PARAM(0, CompletionStatus.COMPLETED_NO); currentStatus = determineStatus(this);
public void rollback_only () throws SystemException, Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple::rollback_only - called for " + get_uid()); } if (determineStatus(this) != Status.StatusPrepared) { if (!preventCommit()) { throw new INVALID_TRANSACTION( ExceptionCodes.INACTIVE_TRANSACTION, CompletionStatus.COMPLETED_NO); } } else throw new Inactive(); }
currentStatus = determineStatus(this);
public PropagationContext get_txcontext () throws Unavailable, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple::get_txcontext - called for " + get_uid()); } /* * Throw an exception if we are not active. */ currentStatus = determineStatus(this); if ((currentStatus != Status.StatusActive) && (currentStatus != Status.StatusMarkedRollback)) { throw new Unavailable(); } else { try { return propagationContext(); } catch (Exception e) { throw new Unavailable(); } } }
parent.addChildAction(this); currentStatus = determineStatus(this); rootAction = this;
public Control create_subtransaction () throws SystemException, SubtransactionsUnavailable, Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple::create_subtransaction - called for " + get_uid()); } if (determineStatus(this) != Status.StatusActive) throw new Inactive(); else { if (!_subtran) throw new SubtransactionsUnavailable(); else { if (controlHandle == null) throw new Inactive(); else return TransactionFactoryImple.create_subtransaction(controlHandle.getControl(), this); } } }
parent.addChildAction(this); currentStatus = determineStatus(this); rootAction = this;
parent.addChildAction(this); currentStatus = determineStatus(this); rootAction = this;
currentStatus = determineStatus(this);
parent.addChildAction(this); currentStatus = determineStatus(this); rootAction = this;
currentStatus = determineStatus(this);
currentStatus = determineStatus(this);
throw new BAD_PARAM(0, CompletionStatus.COMPLETED_NO); currentStatus = determineStatus(this);