public int cancel () { if (TxControl.enableStatistics) TxStats.incrementApplicationRollbacks(); if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(); afterCompletion(outcome); return outcome; }
/** * If this method is called and a transaction is not in a status of RUNNING, * ABORT_ONLY or COMMITTING then do not call afterCompletion. * * A scenario where this may occur is if during the completion of a previous * transaction, a runtime exception is thrown from one of the AbstractRecords * methods. * * RuntimeExceptions are not part of the contract of the API and as such all we * can do is leave the transaction alone. */ public int cancel () { if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(true); if (outcome == ActionStatus.ABORTED) { afterCompletion(outcome); } return outcome; }
/** * If this method is called and a transaction is not in a status of RUNNING, * ABORT_ONLY or COMMITTING then do not call afterCompletion. * * A scenario where this may occur is if during the completion of a previous * transaction, a runtime exception is thrown from one of the AbstractRecords * methods. * * RuntimeExceptions are not part of the contract of the API and as such all we * can do is leave the transaction alone. */ public int cancel () { if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(true); if (outcome == ActionStatus.ABORTED) { afterCompletion(outcome); } return outcome; }
/** * If this method is called and a transaction is not in a status of RUNNING, * ABORT_ONLY or COMMITTING then do not call afterCompletion. * * A scenario where this may occur is if during the completion of a previous * transaction, a runtime exception is thrown from one of the AbstractRecords * methods. * * RuntimeExceptions are not part of the contract of the API and as such all we * can do is leave the transaction alone. */ public int cancel () { if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(true); if (outcome == ActionStatus.ABORTED) { afterCompletion(outcome); } return outcome; }
/** * If this method is called and a transaction is not in a status of RUNNING, * ABORT_ONLY or COMMITTING then do not call afterCompletion. * * A scenario where this may occur is if during the completion of a previous * transaction, a runtime exception is thrown from one of the AbstractRecords * methods. * * RuntimeExceptions are not part of the contract of the API and as such all we * can do is leave the transaction alone. */ public int cancel () { if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(true); if (outcome == ActionStatus.ABORTED) { afterCompletion(outcome); } return outcome; }
public int cancel () { if (TxStats.enabled()) TxStats.getInstance().incrementApplicationRollbacks(); if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(); afterCompletion(outcome); return outcome; }
public int end (boolean report_heuristics) { int outcome; if (parent() != null) parent().removeChildAction(this); if (beforeCompletion()) { outcome = super.End(report_heuristics); } else outcome = super.Abort(); afterCompletion(outcome); return outcome; }
public int cancel () { if (TxStats.enabled()) TxStats.getInstance().incrementApplicationRollbacks(); if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(); afterCompletion(outcome); return outcome; }
public int cancel () { if (TxStats.enabled()) TxStats.getInstance().incrementApplicationRollbacks(); if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(); afterCompletion(outcome); return outcome; }
public int cancel () { if (TxStats.enabled()) TxStats.getInstance().incrementApplicationRollbacks(); if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int outcome = super.Abort(); afterCompletion(outcome); return outcome; }
public int cancel () { if (TxStats.enabled()) TxStats.getInstance().incrementApplicationRollbacks(); if (parent() != null) parent().removeChildAction(this); // beforeCompletion(); int 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); 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; }