Class IsFalse<T>
java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.PathSpecification<T>
net.kaczmarzyk.spring.data.jpa.domain.IsFalse<T>
- All Implemented Interfaces:
Serializable,WithoutTypeConversion,ZeroArgSpecification,org.springframework.data.jpa.domain.Specification<T>
public class IsFalse<T>
extends PathSpecification<T>
implements WithoutTypeConversion, ZeroArgSpecification
Filters using `false` value for a boolean type field, i.e. tests for a false value. The same effect can be achieved with `Equal` specification and `@Spec.constVal` set to `false`. `IsFalse` is just a convenience class that can make the code more explicit.
Does not require any http-parameters to be present, i.e. represents constant part of the query.
- Author:
- Hubert Gotfryd (Tratif sp. z o.o.)
- See Also:
-
Field Summary
Fields inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.criteria.PredicatetoPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) toString()Methods inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
equals, hashCode, pathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.jpa.domain.Specification
and, or
-
Constructor Details
-
IsFalse
-
-
Method Details
-
toPredicate
public jakarta.persistence.criteria.Predicate toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) - Specified by:
toPredicatein interfaceorg.springframework.data.jpa.domain.Specification<T>
-
toString
-