com.atlassian.greenhopper.customfield.backlog
Class BacklogSpecificRelationalOperatorQueryFactory

java.lang.Object
  extended by com.atlassian.greenhopper.customfield.backlog.jira42.AbstractOperatorQueryFactory<T>
      extended by com.atlassian.greenhopper.customfield.backlog.jira42.RelationalOperatorIdIndexValueQueryFactory<Backlog>
          extended by com.atlassian.greenhopper.customfield.backlog.BacklogSpecificRelationalOperatorQueryFactory
All Implemented Interfaces:
com.atlassian.jira.jql.query.OperatorSpecificQueryFactory

public class BacklogSpecificRelationalOperatorQueryFactory
extends RelationalOperatorIdIndexValueQueryFactory<Backlog>

A relation query factory for backlog which overrides the the createPredicate method to return a predicate that checks that the project is the same.


Constructor Summary
BacklogSpecificRelationalOperatorQueryFactory(java.util.Comparator<? super Backlog> comparator, com.atlassian.jira.jql.resolver.NameResolver<Backlog> backlogNameResolver, com.atlassian.jira.jql.resolver.IndexInfoResolver<Backlog> backlogIndexInfoResolver)
           
 
Method Summary
protected  com.atlassian.jira.util.Predicate<Backlog> createPredicate(com.atlassian.query.operator.Operator operator, Backlog domainObject)
          Override this method if you wish to have more than just relational operator predicate evaluation.
 
Methods inherited from class com.atlassian.greenhopper.customfield.backlog.jira42.RelationalOperatorIdIndexValueQueryFactory
createQueryForEmptyOperand, createQueryForMultipleValues, createQueryForSingleValue, generateQueryForValue, generateRangeQueryForPredicate, handlesOperator
 
Methods inherited from class com.atlassian.greenhopper.customfield.backlog.jira42.AbstractOperatorQueryFactory
checkQueryForEmpty, getIndexValues, getTermQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BacklogSpecificRelationalOperatorQueryFactory

public BacklogSpecificRelationalOperatorQueryFactory(java.util.Comparator<? super Backlog> comparator,
                                                     com.atlassian.jira.jql.resolver.NameResolver<Backlog> backlogNameResolver,
                                                     com.atlassian.jira.jql.resolver.IndexInfoResolver<Backlog> backlogIndexInfoResolver)
Method Detail

createPredicate

protected com.atlassian.jira.util.Predicate<Backlog> createPredicate(com.atlassian.query.operator.Operator operator,
                                                                     Backlog domainObject)
Description copied from class: RelationalOperatorIdIndexValueQueryFactory
Override this method if you wish to have more than just relational operator predicate evaluation.

Overrides:
createPredicate in class RelationalOperatorIdIndexValueQueryFactory<Backlog>
Parameters:
operator - the relational operator to use in comparisons
domainObject - the domain object as the basis of all comparisons
Returns:
a predicate which will exclude all domain objects that do not meet the comparison for the domain object


Copyright © 2007-2011 Atlassian. All Rights Reserved.