Class FilterOperation
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.filtering.item.FilterOperation
This represents operation between the path (typically) and value(s).
In most cases it's just glorified wrapper around Querydsl
Ops
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
Modifier and TypeFieldDescriptionfinal boolean
True ifoperator
does not solve ignore-case implicitly.final com.querydsl.core.types.Ops
-
Method Summary
Modifier and TypeMethodDescriptionboolean
True ifoperator
is EQ or EQ_IGNORE_CASE.boolean
True ifoperator
is EQ.boolean
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) treatValue
(Object value) List<?>
treatValuesForIn
(ValueFilterValues<?, ?> values)
-
Field Details
-
operator
public final com.querydsl.core.types.Ops operator -
handleIgnoreCase
public final boolean handleIgnoreCaseTrue ifoperator
does not solve ignore-case implicitly.
-
-
Method Details
-
of
-
of
-
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) -
treatValue
-
treatPathForIn
public com.querydsl.core.types.Expression<?> treatPathForIn(com.querydsl.core.types.Expression<?> expression) -
treatValuesForIn
- Throws:
QueryException
-