Class InsertRowInstruction
java.lang.Object
com.atlassian.greenhopper.manager.rank.instruction.Instruction
com.atlassian.greenhopper.manager.rank.instruction.BaseInstruction
com.atlassian.greenhopper.manager.rank.instruction.InsertRowInstruction
Create Row instruction
Creates a row, reexecutable
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.manager.rank.instruction.BaseInstruction
customFieldId, issueId
-
Constructor Summary
ConstructorsConstructorDescriptionInsertRowInstruction
(com.atlassian.activeobjects.external.ActiveObjects ao, Long customFieldId, Long issueId, Long nextIssueId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 issueIdGet the state of the db after executing this instructionGet the state of the db before executing this instructionvoid
Sanity check row creation Either the row does not exist or it points to the expected nextIdMethods inherited from class com.atlassian.greenhopper.manager.rank.instruction.BaseInstruction
getCustomFieldId, getIssueId
-
Constructor Details
-
InsertRowInstruction
-
-
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 classInstruction
-
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 classInstruction
-
getBeforeState
Description copied from class:Instruction
Get the state of the db before executing this instruction- Overrides:
getBeforeState
in classInstruction
-
getAfterState
Description copied from class:Instruction
Get the state of the db after executing this instruction- Overrides:
getAfterState
in classInstruction
-
getNextIssueId
-