Interface EntityViewSpecificationExecutor<V,E>

Type Parameters:
V - The view type
E - The entity type

public interface EntityViewSpecificationExecutor<V,E>
Like JpaSpecificationExecutor but allows to specify an entity view return type.
Since:
1.6.9
Author:
Moritz Becker, Eugen Mayer
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    count(org.springframework.data.jpa.domain.Specification<E> spec)
    Returns the number of instances that the given Specification will return.
    findAll(org.springframework.data.jpa.domain.Specification<E> spec)
    Returns all views matching the given Specification.
    org.springframework.data.domain.Page<V>
    findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Pageable pageable)
    Returns a Page of views matching the given Specification.
    findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Sort sort)
    Returns all views matching the given Specification in the order defined by Sort.
    findOne(org.springframework.data.jpa.domain.Specification<E> spec)
    Returns a single view matching the given Specification.
  • Method Details

    • findOne

      V findOne(org.springframework.data.jpa.domain.Specification<E> spec)
      Returns a single view matching the given Specification.
      Parameters:
      spec - The specification for filtering
      Returns:
      The matching view
    • findAll

      List<V> findAll(org.springframework.data.jpa.domain.Specification<E> spec)
      Returns all views matching the given Specification.
      Parameters:
      spec - The specification for filtering
      Returns:
      All matching views
    • findAll

      org.springframework.data.domain.Page<V> findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Pageable pageable)
      Returns a Page of views matching the given Specification.
      Parameters:
      spec - The specification for filtering
      pageable - The pagination information
      Returns:
      The requested page of matching views
    • findAll

      List<V> findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Sort sort)
      Returns all views matching the given Specification in the order defined by Sort.
      Parameters:
      spec - The specification for filtering
      sort - The sort order definition
      Returns:
      All matching views in the requested order
    • count

      long count(org.springframework.data.jpa.domain.Specification<E> spec)
      Returns the number of instances that the given Specification will return.
      Parameters:
      spec - the Specification to count instances for
      Returns:
      the number of instances