Class CadaverLockRecord


public class CadaverLockRecord extends LockRecord
  • Constructor Details

  • 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: AbstractRecord
      A rollback of a nested transaction has occurred.
      Overrides:
      nestedAbort in class LockRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • nestedCommit

      public int nestedCommit()
      Description copied from class: AbstractRecord
      A commit of a nested transaction has occurred.
      Overrides:
      nestedCommit in class LockRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • topLevelAbort

      public int topLevelAbort()
      Description copied from class: AbstractRecord
      A rollback of a top-level transaction has occurred.
      Overrides:
      topLevelAbort in class LockRecord
      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 LockRecord
      Returns:
      TwoPhaseOutcome to indicate success/failure.
      See Also:
    • print

      public void print(PrintWriter strm)
      Description copied from class: AbstractRecord
      Write information about this specific instance to the specified stream.
      Overrides:
      print in class LockRecord
      Parameters:
      strm - the stream on which to output.
    • type

      public String type()
      Description copied from class: AbstractRecord
      Re-implementation of abstract methods inherited from base class.
      Overrides:
      type in class LockRecord
    • 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 LockRecord
      Parameters:
      ar - The record to try to replace.
      Returns:
      true if the record should be replaced, false otherwise.
    • replace

      public void replace(AbstractRecord ar)
      Description copied from class: AbstractRecord
      The current record is about to replace the one presented. This method is invoked to give the current record a chance to copy information, for example, from the record being replaced.
      Overrides:
      replace in class AbstractRecord
      Parameters:
      ar - the record that will replace this instance.