Class EqualIgnoreCase<T>
java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.PathSpecification<T>
net.kaczmarzyk.spring.data.jpa.domain.EqualIgnoreCase<T>
- All Implemented Interfaces:
Serializable,LocaleAware,org.springframework.data.jpa.domain.Specification<T>
Filters with equal where-clause (e.g. where firstName = "Homer").
Supports multiple field types: strings, numbers, booleans, enums, dates.
If the field type is string or enum, the where-clause is case insensitive
- Author:
- Ricardo Pardinho, Tomasz Kaczmarzyk
- See Also:
-
Field Summary
FieldsFields inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
path -
Constructor Summary
ConstructorsConstructorDescriptionEqualIgnoreCase(QueryContext queryContext, String path, String[] httpParamValues, Converter converter) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidjakarta.persistence.criteria.PredicatetoPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb) 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
-
Field Details
-
expectedValue
-
-
Constructor Details
-
EqualIgnoreCase
public EqualIgnoreCase(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 cb) - Specified by:
toPredicatein interfaceorg.springframework.data.jpa.domain.Specification<T>
-
setLocale
- Specified by:
setLocalein interfaceLocaleAware
-
hashCode
public int hashCode()- Overrides:
hashCodein classPathSpecification<T>
-
equals
- Overrides:
equalsin classPathSpecification<T>
-
toString
-