Class FilterOperation
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.filtering.item.FilterOperation
-
public class FilterOperation extends Object
This represents operation between the path (typically) and value(s). In most cases it's just glorified wrapper around QuerydslOps
value, but for cases of case-insensitive string comparison (greater/lower than) or IN operations it hides the complexity of adding "normalizing" operation (lowering the casing) to the both sides.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
handleIgnoreCase
True ifoperator
does not solve ignore-case implicitly.com.querydsl.core.types.Ops
operator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAnyEqualOperation()
True ifoperator
is EQ or EQ_IGNORE_CASE.boolean
isEqualOperation()
True ifoperator
is EQ.boolean
isTextOnlyOperation()
True ifoperator
can be used only on TEXT/VARCHAR.static FilterOperation
of(com.querydsl.core.types.Ops ops)
static FilterOperation
of(com.querydsl.core.types.Ops ops, boolean handleIgnoreCase)
com.querydsl.core.types.Expression<?>
treatPath(com.querydsl.core.types.Expression<?> expression)
com.querydsl.core.types.Expression<?>
treatPathForIn(com.querydsl.core.types.Expression<?> expression)
Object
treatValue(Object value)
List<?>
treatValuesForIn(ValueFilterValues<?,?> values)
-
-
-
Field Detail
-
operator
public final com.querydsl.core.types.Ops operator
-
handleIgnoreCase
public final boolean handleIgnoreCase
True ifoperator
does not solve ignore-case implicitly.
-
-
Method Detail
-
of
public static FilterOperation of(com.querydsl.core.types.Ops ops)
-
of
public static FilterOperation of(com.querydsl.core.types.Ops ops, boolean handleIgnoreCase)
-
isEqualOperation
public boolean isEqualOperation()
True ifoperator
is EQ.
-
isAnyEqualOperation
public boolean isAnyEqualOperation()
True ifoperator
is EQ or EQ_IGNORE_CASE.
-
isTextOnlyOperation
public boolean isTextOnlyOperation()
True ifoperator
can be used only on TEXT/VARCHAR. Operators that ignore cases or contains/starts/endsWith operators are not supported for numbers, etc.
-
treatPath
public com.querydsl.core.types.Expression<?> treatPath(com.querydsl.core.types.Expression<?> expression)
-
treatPathForIn
public com.querydsl.core.types.Expression<?> treatPathForIn(com.querydsl.core.types.Expression<?> expression)
-
treatValuesForIn
public List<?> treatValuesForIn(ValueFilterValues<?,?> values) throws QueryException
- Throws:
QueryException
-
-