Interface EntityGraphQuerydslPredicateExecutor<T>
- All Superinterfaces:
org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
- All Known Implementing Classes:
EntityGraphQuerydslRepository
@NoRepositoryBean
public interface EntityGraphQuerydslPredicateExecutor<T>
extends org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
Created on 17/06/17.
- Author:
- Reda.Housni-Alaoui
-
Method Summary
Modifier and TypeMethodDescriptionfindAll(EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders) Returns all entities ordered by the givenOrderSpecifiers.findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph) Returns all entities matching the givenPredicate.findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders) Returns all entities matching the givenPredicateapplying the givenOrderSpecifiers.org.springframework.data.domain.Page<T>findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) Returns aPageof entities matching the givenPredicate.findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort, EntityGraph entityGraph) Returns all entities matching the givenPredicateapplying the givenSort.findOne(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph) Returns a single entity matching the givenPredicateor null if none was found.Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findOne
Returns a single entity matching the givenPredicateor null if none was found.- Parameters:
predicate- can be null.entityGraph- can be null.- Returns:
- a single entity matching the given
Predicateor null if none was found. - Throws:
org.springframework.dao.IncorrectResultSizeDataAccessException- if the predicate yields more than one result.
-
findAll
Returns all entities matching the givenPredicate. In case no match could be found an emptyIterableis returned.- Parameters:
predicate- can be null.entityGraph- can be null.- Returns:
- all entities matching the given
Predicate.
-
findAll
Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort, EntityGraph entityGraph) Returns all entities matching the givenPredicateapplying the givenSort. In case no match could be found an emptyIterableis returned.- Parameters:
predicate- can be null.sort- theSortspecification to sort the results by, must not be null.entityGraph- can be null.- Returns:
- all entities matching the given
Predicate. - Since:
- 1.10
-
findAll
Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders) Returns all entities matching the givenPredicateapplying the givenOrderSpecifiers. In case no match could be found an emptyIterableis returned.- Parameters:
predicate- can be null.entityGraph- can be null.orders- theOrderSpecifiers to sort the results by- Returns:
- all entities matching the given
Predicateapplying the givenOrderSpecifiers.
-
findAll
Returns all entities ordered by the givenOrderSpecifiers.- Parameters:
orders- theOrderSpecifiers to sort the results by.entityGraph- can be null.- Returns:
- all entities ordered by the given
OrderSpecifiers.
-
findAll
org.springframework.data.domain.Page<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) Returns aPageof entities matching the givenPredicate. In case no match could be found, an emptyPageis returned.- Parameters:
predicate- can be null.pageable- can be null.entityGraph- can be null.- Returns:
- a
Pageof entities matching the givenPredicate.
-