com.atlassian.greenhopper.manager.rank.instruction
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
public class DatabaseEmptinessCheck
- extends BaseInstruction
Checks that there are no issue rows for a given custom field.
Used when inserting the first ever issue into the index
Constructor Summary |
DatabaseEmptinessCheck(com.atlassian.activeobjects.external.ActiveObjects ao,
java.lang.Long customFieldId,
java.lang.Long issueId)
|
Method Summary |
java.lang.String |
getBeforeState()
Get the state of the db before executing this instruction |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseEmptinessCheck
public DatabaseEmptinessCheck(com.atlassian.activeobjects.external.ActiveObjects ao,
java.lang.Long customFieldId,
java.lang.Long issueId)
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 class Instruction
getBeforeState
public java.lang.String getBeforeState()
- Description copied from class:
Instruction
- Get the state of the db before executing this instruction
- Overrides:
getBeforeState
in class Instruction
Copyright © 2007-2013 Atlassian. All Rights Reserved.