Class IsNull<T>

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

public class IsNull<T> extends PathSpecification<T> implements ZeroArgSpecification

Filers with "is null" where clause (e.g. where nickName is null).

Does not require any http-parameters to be present, i.e. represents constant part of the query.

Author:
Tomasz Kaczmarzyk
See Also:
  • Field Summary

    Fields inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification

    path
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsNull(QueryContext queryContext, String path, String[] args)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.criteria.Predicate
    toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb)
     

    Methods inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification

    equals, hashCode, path

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.data.jpa.domain.Specification

    and, or
  • 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)
      Specified by:
      toPredicate in interface org.springframework.data.jpa.domain.Specification<T>