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 Type
    Method
    Description
    findAll(EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders)
    Returns all entities ordered by the given OrderSpecifiers.
    findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph)
    Returns all entities matching the given Predicate.
    findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders)
    Returns all entities matching the given Predicate applying the given OrderSpecifiers.
    org.springframework.data.domain.Page<T>
    findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph)
    Returns a Page of entities matching the given Predicate.
    findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort, EntityGraph entityGraph)
    Returns all entities matching the given Predicate applying the given Sort.
    findOne(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph)
    Returns a single entity matching the given Predicate or 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

      Optional<T> findOne(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph)
      Returns a single entity matching the given Predicate or null if none was found.
      Parameters:
      predicate - can be null.
      entityGraph - can be null.
      Returns:
      a single entity matching the given Predicate or null if none was found.
      Throws:
      org.springframework.dao.IncorrectResultSizeDataAccessException - if the predicate yields more than one result.
    • findAll

      Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph)
      Returns all entities matching the given Predicate. In case no match could be found an empty Iterable is 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 given Predicate applying the given Sort. In case no match could be found an empty Iterable is returned.
      Parameters:
      predicate - can be null.
      sort - the Sort specification 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 given Predicate applying the given OrderSpecifiers. In case no match could be found an empty Iterable is returned.
      Parameters:
      predicate - can be null.
      entityGraph - can be null.
      orders - the OrderSpecifiers to sort the results by
      Returns:
      all entities matching the given Predicate applying the given OrderSpecifiers.
    • findAll

      Iterable<T> findAll(EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders)
      Returns all entities ordered by the given OrderSpecifiers.
      Parameters:
      orders - the OrderSpecifiers 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 a Page of entities matching the given Predicate. In case no match could be found, an empty Page is returned.
      Parameters:
      predicate - can be null.
      pageable - can be null.
      entityGraph - can be null.
      Returns:
      a Page of entities matching the given Predicate.