Class EqualDay<T>
java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.PathSpecification<T>
net.kaczmarzyk.spring.data.jpa.domain.EqualDay<T>
- All Implemented Interfaces:
Serializable,org.springframework.data.jpa.domain.Specification<T>
Matches the day part of a date-time attribute, ignoring the time. Internally uses `Between` specification with range within one day from `00:00:00` (inclusive) to `00:00:00` of the next day (exclusive).
Supports date-type fields.
- 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
ConstructorsConstructorDescriptionEqualDay(QueryContext queryContext, String path, String[] httpParamValues, Converter converter) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()jakarta.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
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
-
EqualDay
public EqualDay(QueryContext queryContext, String path, String[] httpParamValues, Converter converter)
-
-
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) -
equals
- Overrides:
equalsin classPathSpecification<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPathSpecification<T>
-
toString
-