Class InsertRowInstruction


public class InsertRowInstruction extends BaseInstruction
Create Row instruction Creates a row, reexecutable
  • Constructor Details

    • InsertRowInstruction

      public InsertRowInstruction(com.atlassian.activeobjects.external.ActiveObjects ao, Long customFieldId, Long issueId, Long nextIssueId)
  • Method Details

    • sanityCheck

      public void sanityCheck()
      Sanity check row creation Either the row does not exist or it points to the expected nextId
      Overrides:
      sanityCheck in class Instruction
    • execute

      public void execute()
      Execute a create row instruction Either the row doesn't exist in which case we create it or if it already exists we verify that next points to the correct issueId
      Overrides:
      execute in class Instruction
    • getBeforeState

      public String getBeforeState()
      Description copied from class: Instruction
      Get the state of the db before executing this instruction
      Overrides:
      getBeforeState in class Instruction
    • getAfterState

      public String getAfterState()
      Description copied from class: Instruction
      Get the state of the db after executing this instruction
      Overrides:
      getAfterState in class Instruction
    • getNextIssueId

      public Long getNextIssueId()