Class NotNull<T>

java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.PathSpecification<T>
net.kaczmarzyk.spring.data.jpa.domain.NotNull<T>
All Implemented Interfaces:
Serializable, org.springframework.data.jpa.domain.Specification<T>

public class NotNull<T> extends PathSpecification<T>

Filers with "is null" or "is not null" where clause (e.g. where nickName is not null). This file is the inverse of Null.java

Requires boolean parameter.

Author:
Steven McLaughlin
See Also:
  • Field Details

    • expectedValue

      protected String expectedValue
  • Constructor Details

  • Method Details

    • toPredicate

      public jakarta.persistence.criteria.Predicate toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class PathSpecification<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PathSpecification<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object