Class AbstractNegatableSqmPredicate

    • Constructor Detail

      • AbstractNegatableSqmPredicate

        public AbstractNegatableSqmPredicate​(NodeBuilder nodeBuilder)
      • AbstractNegatableSqmPredicate

        public AbstractNegatableSqmPredicate​(boolean negated,
                                             NodeBuilder nodeBuilder)
    • Method Detail

      • isNegated

        public boolean isNegated()
        Description copied from interface: SqmNegatablePredicate
        Is this predicate (currently) negated?
        Specified by:
        isNegated in interface jakarta.persistence.criteria.Predicate
        Specified by:
        isNegated in interface SqmNegatablePredicate
        Returns:
        true if we have a negated form currently
      • negate

        public void negate()
        Description copied from interface: SqmNegatablePredicate
        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.

        Specified by:
        negate in interface SqmNegatablePredicate