public abstract class AbstractEqualityDbQueryFactory<T> extends AbstractOperatorDbQueryFactory<T> implements OperatorSpecificDbQueryFactory
fieldName, nameResolver, path
Constructor and Description |
---|
AbstractEqualityDbQueryFactory(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 |
createQueryForMultipleValues(Operator operator,
List<QueryLiteral> rawValues)
Generates the Query for a list of operand ids.
|
DbQueryFactoryResult |
createQueryForSingleValue(Operator operator,
List<QueryLiteral> rawValues)
Generates the predicate for a single operand id.
|
protected VisibilityClauseQueryFactory |
getVisibilityClauseQueryFactory() |
protected DbQueryFactoryResult |
handleEquals(com.querydsl.core.types.Path path,
List<QueryLiteral> values) |
protected DbQueryFactoryResult |
handleNotEquals(com.querydsl.core.types.Path path,
List<QueryLiteral> values) |
boolean |
handlesOperator(Operator operator) |
getValueAsLong
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createQueryForEmptyOperand
public AbstractEqualityDbQueryFactory(@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 createQueryForSingleValue(Operator operator, List<QueryLiteral> rawValues)
OperatorSpecificDbQueryFactory
createQueryForSingleValue
in interface OperatorSpecificDbQueryFactory
operator
- operator which is handled by this implementation.rawValues
- the raw values provided to the operand that need to be converted to index values.public DbQueryFactoryResult createQueryForMultipleValues(Operator operator, List<QueryLiteral> rawValues)
OperatorSpecificDbQueryFactory
createQueryForMultipleValues
in interface OperatorSpecificDbQueryFactory
operator
- operator which is handled by this implementation.rawValues
- the raw values provided to the operand that need to be converted to index values.public boolean handlesOperator(Operator operator)
handlesOperator
in interface OperatorSpecificDbQueryFactory
operator
- the operator in question.protected DbQueryFactoryResult handleNotEquals(com.querydsl.core.types.Path path, List<QueryLiteral> values)
protected DbQueryFactoryResult handleEquals(com.querydsl.core.types.Path path, List<QueryLiteral> values)
protected VisibilityClauseQueryFactory getVisibilityClauseQueryFactory()
Copyright © 2002-2016 Atlassian. All Rights Reserved.