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 QuerydslOpsvalue, 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 booleanhandleIgnoreCaseTrue ifoperatordoes not solve ignore-case implicitly.com.querydsl.core.types.Opsoperator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAnyEqualOperation()True ifoperatoris EQ or EQ_IGNORE_CASE.booleanisEqualOperation()True ifoperatoris EQ.booleanisTextOnlyOperation()True ifoperatorcan be used only on TEXT/VARCHAR.static FilterOperationof(com.querydsl.core.types.Ops ops)static FilterOperationof(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)ObjecttreatValue(Object value)List<?>treatValuesForIn(ValueFilterValues<?,?> values)
-
-
-
Field Detail
-
operator
public final com.querydsl.core.types.Ops operator
-
handleIgnoreCase
public final boolean handleIgnoreCase
True ifoperatordoes 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 ifoperatoris EQ.
-
isAnyEqualOperation
public boolean isAnyEqualOperation()
True ifoperatoris EQ or EQ_IGNORE_CASE.
-
isTextOnlyOperation
public boolean isTextOnlyOperation()
True ifoperatorcan 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
-
-