public class EqualityDbQueryFactory<T> extends AbstractEqualityDbQueryFactory<T>
DocumentConstants.ISSUE_NON_EMPTY_FIELD_IDS
field.fieldName, nameResolver, path
Constructor and Description |
---|
EqualityDbQueryFactory(String fieldName,
com.querydsl.core.types.Path path,
NameResolver<T> nameResolver,
VisibilityClauseQueryFactory visibilityClauseQueryFactory)
Constructor for the Equality Query Factory
|
Modifier and Type | Method and Description |
---|---|
DbQueryFactoryResult |
createQueryForEmptyOperand(Operator operator)
Generates the query for an operand that has an
OperandHandler that
returns true for the isEmpty method. |
createQueryForMultipleValues, createQueryForSingleValue, getVisibilityClauseQueryFactory, handleEquals, handleNotEquals, handlesOperator
getValueAsLong
public EqualityDbQueryFactory(@Nonnull String fieldName, @Nonnull com.querydsl.core.types.Path path, @Nonnull NameResolver<T> nameResolver, @Nonnull VisibilityClauseQueryFactory visibilityClauseQueryFactory)
fieldName
- Field Namepath
- The Query Dsl Path of the field, e.g. com.atlassian.jira.model.querydsl.QIssue#ISSUE#project
nameResolver
- Name resolvervisibilityClauseQueryFactory
- Visibility querry clause factory.
If the field is always visible use VisibilityClauseQueryFactory.ALWAYS_VISIBLE
public DbQueryFactoryResult createQueryForEmptyOperand(Operator operator)
OperatorSpecificDbQueryFactory
OperandHandler
that
returns true for the isEmpty method. This should generate a Lucene query that will perform the correct search
for issues where the field value is not set.operator
- operator which is handled by this implementation.Copyright © 2002-2016 Atlassian. All Rights Reserved.