/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction has aborted. Invalidate any new state. */ public int topLevelAbort () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::topLevelAbort() for " + order()); } newStateIsValid = false; if (oType == RecordType.RECOVERY) { tsLogger.i18NLogger.warn_CadaverRecord_1(order(), getTypeOfObject()); } // super.forgetAction(false); return TwoPhaseOutcome.FINISH_OK; }
/** * The nested transaction is preparing. If there is any new state for * the object being removed, and that state is valid, then this record * will call nestedPrepare on the object being removed. * * If we have no new state then we cannot commit and must force an * abort. Do this by failing the prepare phase. */ public int nestedPrepare () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("CadaverRecord::nestedPrepare() for " + order()); } if (newStateIsValid) return super.nestedPrepare(); else return TwoPhaseOutcome.PREPARE_NOTOK; }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldReplace * * @param ar the record to potentially replace this * instance. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldReplace (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }
/** * Overrides AbstractRecord.shouldMerge * * @param ar the record to potentially merge with. * * @return <code>true</code> if this instance and the parameter have the * same id (order()) and the parameter is either persistent or recoverable. * <code>false</code> otherwise. * @see com.arjuna.ats.arjuna.coordinator.RecordType */ public boolean shouldMerge (AbstractRecord ar) { return (((order().equals(ar.order())) && ((ar.typeIs() == RecordType.PERSISTENCE) || (ar.typeIs() == RecordType.RECOVERY))) ? true : false); }