Interface WebQueryRepository<T>
- Type Parameters:
T- entity type backing the repository
- All Known Implementing Classes:
WebQueryRepositoryImpl
public interface WebQueryRepository<T>
Repository fragment for executing
Specification-based tuple selections.-
Method Summary
Modifier and TypeMethodDescriptionList<jakarta.persistence.Tuple>findAll(org.springframework.data.jpa.domain.Specification<T> specification, org.springframework.data.domain.Pageable pageable, BiFunction<jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.CriteriaBuilder, List<jakarta.persistence.criteria.Selection<?>>> selectionsProvider) Executes a tuple query for the given specification, sort/page request, and selection definition.org.springframework.data.domain.Page<jakarta.persistence.Tuple>findAllPaged(org.springframework.data.jpa.domain.Specification<T> specification, org.springframework.data.domain.Pageable pageable, BiFunction<jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.CriteriaBuilder, List<jakarta.persistence.criteria.Selection<?>>> selectionsProvider) Executes a tuple query and wraps the results in a page.
-
Method Details
-
findAll
List<jakarta.persistence.Tuple> findAll(org.springframework.data.jpa.domain.Specification<T> specification, org.springframework.data.domain.Pageable pageable, BiFunction<jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.CriteriaBuilder, List<jakarta.persistence.criteria.Selection<?>>> selectionsProvider) Executes a tuple query for the given specification, sort/page request, and selection definition.- Parameters:
specification- filtering criteria to applypageable- paging and sorting information; sorting is always applied and limits are applied when pagedselectionsProvider- callback that defines the tuple selections for the query- Returns:
- tuples matching the requested filter, sort, and selection set
-
findAllPaged
org.springframework.data.domain.Page<jakarta.persistence.Tuple> findAllPaged(org.springframework.data.jpa.domain.Specification<T> specification, org.springframework.data.domain.Pageable pageable, BiFunction<jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.CriteriaBuilder, List<jakarta.persistence.criteria.Selection<?>>> selectionsProvider) Executes a tuple query and wraps the results in a page.When
pageableis unpaged, the returned page contains all matching tuples without issuing a separate count query.- Parameters:
specification- filtering criteria to applypageable- paging and sorting information; sorting is always applied and limits are applied when pagedselectionsProvider- callback that defines the tuple selections for the query- Returns:
- a page of tuples matching the requested filter, sort, and selection set
-