Class 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 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 Detail

      • operator

        public final com.querydsl.core.types.Ops operator
      • handleIgnoreCase

        public final boolean handleIgnoreCase
        True if operator 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 if operator is EQ.
      • isAnyEqualOperation

        public boolean isAnyEqualOperation()
        True if operator is EQ or EQ_IGNORE_CASE.
      • isTextOnlyOperation

        public boolean isTextOnlyOperation()
        True if operator 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)