Package com.atlassian.jira.search.jql
Interface OperatorSpecificQueryFactory
- All Known Implementing Classes:
AbstractEqualityQueryFactory,ActualValueEqualityQueryFactory,ActualValueRelationalQueryFactory,DateEqualityQueryFactory,DateRelationalQueryFactory,EqualityQueryFactory,EqualityWithSpecifiedEmptyValueQueryFactory,LikeQueryFactory,LocalDateEqualityQueryFactory,LocalDateRelationalQueryFactory,NumberEqualityQueryFactory,NumberRelationalQueryFactory,RelationalOperatorIdIndexValueQueryFactory,RelationalOperatorMutatedIndexValueQueryMapper,VersionLikeQueryFactory,VersionSpecificRelationalOperatorQueryFactory
public interface OperatorSpecificQueryFactory
A factory that produces a
Query for the given field, operator, and operand values.- Since:
- 10.4
-
Method Summary
Modifier and TypeMethodDescriptioncreateQueryForEmptyOperand(String fieldName, Operator operator) Generates the query for an operand that supports EMPTY values.createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> rawValues) Generates the query for a list of operand ids.createQueryForSingleValue(String fieldName, Operator operator, List<QueryLiteral> rawValues) Generates the query for a single operand id.booleanhandlesOperator(Operator operator)
-
Method Details
-
createQueryForSingleValue
Generates the query for a single operand id.- Parameters:
fieldName- the index field name the query should be generated for.operator- operator which is handled by this implementation.rawValues- a list of raw values associated with the operand. These values are converted into index-specific representations.- Returns:
- the result that contains the query of type
Queryand its metadata.
-
createQueryForMultipleValues
Query createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> rawValues) Generates the query for a list of operand ids.- Parameters:
fieldName- the index field name the query should be generated for.operator- operator which is handled by this implementation.rawValues- a list of raw values associated with the operand. These values are converted into index-specific representations.- Returns:
- the result that contains the query of type
Queryand its metadata.
-
createQueryForEmptyOperand
Generates the query for an operand that supports EMPTY values.- Parameters:
fieldName- the index field name the query should be generated for.operator- operator which is handled by this implementation.- Returns:
- the result that contains the query of type
Queryand its metadata.
-
handlesOperator
- Returns:
- true if this implementation can handle the given operator, false otherwise.
-