Top Description Methods
org.hibernate.query.sqm.tree.predicate

public Interface SqmNegatablePredicate

extends SqmPredicate
Known Direct Subinterfaces
org.hibernate.query.sqm.tree.predicate.SqmInPredicate
Known Direct Implementers
org.hibernate.query.sqm.tree.predicate.AbstractNegatableSqmPredicate

Contract for predicates that have a negated form, e.g. x is not null as opposed to not(x is null)
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if we have a negated form currently
isNegated
()

Redeclares jakarta.persistence.criteria.Predicate.isNegated.

Is this predicate (currently) negated?
public void
negate()

Apply an external negation.

Inherited from org.hibernate.query.sqm.tree.predicate.SqmPredicate:
copygetJavaTypeDescriptornot

Method Detail

isNegatedback to summary
public boolean isNegated()

Redeclares jakarta.persistence.criteria.Predicate.isNegated.

Is this predicate (currently) negated?

Returns:boolean

true if we have a negated form currently

negateback to summary
public 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.