Interface SqmNegatablePredicate

    • Method Detail

      • isNegated

        boolean isNegated()
        Is this predicate (currently) negated?
        Specified by:
        isNegated in interface Predicate
        true if we have a negated form currently
      • negate

        void negate()
        Apply an external negation. Called when we encounter a NOT grouping.

        For example, for not(x is null) we build the SqmNullnessPredicate and then call its negate method which results in x is not null.

        Can be applied nested as well. For example, not(not(x is null)) becomes x is null because the double-negative cancel each other out.