Class DefaultSpecification<T>
java.lang.Object
com.eoscode.springapitools.data.filter.DefaultSpecification<T>
- All Implemented Interfaces:
Serializable,org.springframework.data.jpa.domain.Specification<T>
public class DefaultSpecification<T>
extends Object
implements org.springframework.data.jpa.domain.Specification<T>
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.data.jpa.domain.Specification
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpecification(FilterDefinition filterCriteria) DefaultSpecification(jakarta.persistence.criteria.Join join, FilterDefinition filterCriteria) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.criteria.PredicatetoPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> criteriaQuery, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) voidwithStringIgnoreCase(StringCaseSensitive stringCaseSensitive) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.jpa.domain.Specification
and, or
-
Constructor Details
-
DefaultSpecification
-
DefaultSpecification
public DefaultSpecification(jakarta.persistence.criteria.Join join, FilterDefinition filterCriteria)
-
-
Method Details
-
toPredicate
public jakarta.persistence.criteria.Predicate toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> criteriaQuery, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) - Specified by:
toPredicatein interfaceorg.springframework.data.jpa.domain.Specification<T>
-
getOriginalFieldName
-
withStringIgnoreCase
-