Class CadaverActivationRecord


public class CadaverActivationRecord extends ActivationRecord
  • Constructor Details

    • CadaverActivationRecord

      public CadaverActivationRecord(StateManager sm)
    • CadaverActivationRecord

      protected CadaverActivationRecord()
  • Method Details

    • propagateOnAbort

      public boolean propagateOnAbort()
      Description copied from class: AbstractRecord
      Determine if records are discarded on action abort or must be propagated to parents.
      Overrides:
      propagateOnAbort in class AbstractRecord
      Returns:
      true if the record should be propagated to the parent transaction if the current transaction rolls back, false otherwise. The default is false.
    • nestedAbort

      public int nestedAbort()
      Description copied from class: ActivationRecord
      nestedAbort causes the reset_state function of the object to be invoked passing it the saved ObjectStatus.
      Overrides:
      nestedAbort in class ActivationRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • nestedCommit

      public int nestedCommit()
      Description copied from class: ActivationRecord
      nestedCommit does nothing since the passing of the state up to the parent action is handled by the record list merging system. In fact since nested_prepare returns PREPARE_READONLY this function should never actually be called.
      Overrides:
      nestedCommit in class ActivationRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • nestedPrepare

      public int nestedPrepare()
      Description copied from class: AbstractRecord
      A prepare for a nested transaction has occurred.
      Overrides:
      nestedPrepare in class ActivationRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • topLevelAbort

      public int topLevelAbort()
      Description copied from class: ActivationRecord
      topLevelAbort for Activation records is exactly like a nested abort.
      Overrides:
      topLevelAbort in class ActivationRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • topLevelCommit

      public int topLevelCommit()
      Description copied from class: AbstractRecord
      A commit of a top-level transaction has occurred.
      Overrides:
      topLevelCommit in class ActivationRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • topLevelPrepare

      public int topLevelPrepare()
      Description copied from class: AbstractRecord
      A prepare for a top-level transaction has occurred.
      Overrides:
      topLevelPrepare in class ActivationRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • type

      public String type()
      Description copied from class: AbstractRecord
      Re-implementation of abstract methods inherited from base class.
      Overrides:
      type in class ActivationRecord
    • shouldReplace

      public boolean shouldReplace(AbstractRecord ar)
      Description copied from class: AbstractRecord
      Should we replace the record presented with the current record?
      Overrides:
      shouldReplace in class ActivationRecord
      Parameters:
      ar - The record to try to replace.
      Returns:
      true if the record should be replaced, false otherwise.