public boolean running () { try { org.omg.CosTransactions.Status status = get_status(); switch (status.value()) { case Status._StatusActive: case Status._StatusMarkedRollback: return true; default: return false; } } catch (Exception ex) { return true; } }
public boolean running () { try { org.omg.CosTransactions.Status status = get_status(); switch (status.value()) { case Status._StatusActive: case Status._StatusMarkedRollback: return true; default: return false; } } catch (Exception ex) { return true; } }
public org.omg.CosTransactions.Status get_status () throws SystemException { ControlWrapper currentAction = _theManager.current(); org.omg.CosTransactions.Status stat = ((currentAction == null) ? org.omg.CosTransactions.Status.StatusNoTransaction : currentAction.get_status()); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("CurrentImple::get_status - returning " + Utility.stringStatus(stat)); } return stat; }
protected final org.omg.CosTransactions.Status getStatus () { if (_theStatus != null) { switch (_theStatus.value()) { case Status._StatusRolledBack: case Status._StatusCommitted: case Status._StatusNoTransaction: return _theStatus; default: break; } } /* * It shouldn't be possible for _theAction to be null and for the status * to be unset. If it is something went wrong!! */ org.omg.CosTransactions.Status stat = org.omg.CosTransactions.Status.StatusUnknown; if (_theAction != null) { stat = _theAction.get_status(); } return stat; }
protected final org.omg.CosTransactions.Status getStatus () { if (_theStatus != null) { switch (_theStatus.value()) { case Status._StatusRolledBack: case Status._StatusCommitted: case Status._StatusNoTransaction: return _theStatus; default: break; } } /* * It shouldn't be possible for _theAction to be null and for the status * to be unset. If it is something went wrong!! */ org.omg.CosTransactions.Status stat = org.omg.CosTransactions.Status.StatusUnknown; if (_theAction != null) { stat = _theAction.get_status(); } return stat; }
public org.omg.CosTransactions.Status get_status () throws SystemException { ControlWrapper currentAction = _theManager.current(); org.omg.CosTransactions.Status stat = ((currentAction == null) ? org.omg.CosTransactions.Status.StatusNoTransaction : currentAction.get_status()); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "CurrentImple::get_status - returning " + Utility.stringStatus(stat)); } return stat; }