Class DatabaseEmptinessCheck
java.lang.Object
com.atlassian.greenhopper.manager.rank.instruction.Instruction
com.atlassian.greenhopper.manager.rank.instruction.BaseInstruction
com.atlassian.greenhopper.manager.rank.instruction.DatabaseEmptinessCheck
Checks that there are no issue rows for a given custom field.
Used when inserting the first ever issue into the index
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.manager.rank.instruction.BaseInstruction
customFieldId, issueId
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseEmptinessCheck
(com.atlassian.activeobjects.external.ActiveObjects ao, Long customFieldId, Long issueId) -
Method Summary
Modifier and TypeMethodDescriptionGet the state of the db before executing this instructionvoid
Sanity check for index emptiness Either there are no rows for the given custom field or there is only one entry containing the to be inserted issueMethods inherited from class com.atlassian.greenhopper.manager.rank.instruction.BaseInstruction
getCustomFieldId, getIssueId
Methods inherited from class com.atlassian.greenhopper.manager.rank.instruction.Instruction
execute, getAfterState
-
Constructor Details
-
DatabaseEmptinessCheck
-
-
Method Details
-
sanityCheck
public void sanityCheck()Sanity check for index emptiness Either there are no rows for the given custom field or there is only one entry containing the to be inserted issue- Overrides:
sanityCheck
in classInstruction
-
getBeforeState
Description copied from class:Instruction
Get the state of the db before executing this instruction- Overrides:
getBeforeState
in classInstruction
-