com.atlassian.greenhopper.customfield.backlog.jira42
Class AbstractOperatorQueryFactory<T>

java.lang.Object
  extended by com.atlassian.greenhopper.customfield.backlog.jira42.AbstractOperatorQueryFactory<T>
Direct Known Subclasses:
RelationalOperatorIdIndexValueQueryFactory

public abstract class AbstractOperatorQueryFactory<T>
extends java.lang.Object

Base class for operator query factories that can generate a query for a fieldName and a predicate.

Since:
v4.0

Constructor Summary
protected AbstractOperatorQueryFactory(com.atlassian.jira.jql.resolver.IndexInfoResolver<T> indexInfoResolver)
           
 
Method Summary
protected  com.atlassian.jira.jql.query.QueryFactoryResult checkQueryForEmpty(org.apache.lucene.search.BooleanQuery query)
           
protected  java.util.List<java.lang.String> getIndexValues(java.util.List<com.atlassian.jira.jql.operand.QueryLiteral> rawValues)
           
protected  org.apache.lucene.search.TermQuery getTermQuery(java.lang.String fieldName, java.lang.String indexValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOperatorQueryFactory

protected AbstractOperatorQueryFactory(com.atlassian.jira.jql.resolver.IndexInfoResolver<T> indexInfoResolver)
Method Detail

getTermQuery

protected org.apache.lucene.search.TermQuery getTermQuery(java.lang.String fieldName,
                                                          java.lang.String indexValue)

checkQueryForEmpty

protected com.atlassian.jira.jql.query.QueryFactoryResult checkQueryForEmpty(org.apache.lucene.search.BooleanQuery query)

getIndexValues

protected java.util.List<java.lang.String> getIndexValues(java.util.List<com.atlassian.jira.jql.operand.QueryLiteral> rawValues)
Parameters:
rawValues - the raw values to convert
Returns:
a list of index values in String form; never null, but may contain null values if empty literals were passed in.


Copyright © 2007-2011 Atlassian. All Rights Reserved.