public class RecordSpecificationsBuilder
extends java.lang.Object
Specification which can be used
with a Repository to query the database.| Constructor and Description |
|---|
RecordSpecificationsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.jpa.domain.Specification<Record> |
build()
|
RecordSpecificationsBuilder |
with(java.util.List<SearchCriteria> criteria) |
public RecordSpecificationsBuilder with(java.util.List<SearchCriteria> criteria)
public org.springframework.data.jpa.domain.Specification<Record> build()
Specification using RecordSpecification and a list of SearchCriteria.
The RecordSpecification.toPredicate(Root, CriteriaQuery, CriteriaBuilder) function will be called
to create a Predicate that will be used to retrieve the data.Specification