public abstract class ComparableSpecification<T> extends PathSpecification<T>
Base class for Comparable comparisons..
Supports multiple field types: strings, numbers, booleans, enums, dates.
path| Constructor and Description |
|---|
ComparableSpecification(String path,
String[] httpParamValues,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <Y extends Comparable<? super Y>> |
makePredicate(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Expression<? extends Y> x,
Y y) |
javax.persistence.criteria.Predicate |
toPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaQuery<?> query,
javax.persistence.criteria.CriteriaBuilder cb) |
equals, hashCode, pathpublic javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder cb)
protected abstract <Y extends Comparable<? super Y>> javax.persistence.criteria.Predicate makePredicate(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Expression<? extends Y> x, Y y)
Copyright © 2014–2017. All rights reserved.