/** * @return <code>true</code> if the transaction is running, * <code>false</code> otherwise. */ public boolean running () { return (boolean) (status() == ActionStatus.RUNNING); }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) parent().removeChildAction(this); boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) { parent().removeChildAction(this); } boolean canEnd = true; if(status() != ActionStatus.ABORT_ONLY || TxControl.isBeforeCompletionWhenRollbackOnly()) { canEnd = beforeCompletion(); } if (canEnd) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome, report_heuristics); return outcome; }