Interface JpaSpecificationExecutorWithoutPageable<T>

  • All Superinterfaces:
    org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
    All Known Implementing Classes:
    ApiJpaRepositoryImpl

    public interface JpaSpecificationExecutorWithoutPageable<T>
    extends org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default <P> List<P> findAllProjected​(org.springframework.data.jpa.domain.Specification<T> specs, Class<P> projectionClass, Collection<String> fields)  
      <P> List<P> findAllProjected​(org.springframework.data.jpa.domain.Specification<T> specs, Class<P> projectionClass, Collection<String> fields, org.springframework.data.domain.Sort sort)
      Returns all entities matching the given Specification.
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

        count, findAll, findAll, findAll, findOne
    • Method Detail

      • findAllProjected

        <P> List<P> findAllProjected​(@Nullable
                                     org.springframework.data.jpa.domain.Specification<T> specs,
                                     Class<P> projectionClass,
                                     @Nullable
                                     Collection<String> fields,
                                     @Nullable
                                     org.springframework.data.domain.Sort sort)
        Returns all entities matching the given Specification.
        Parameters:
        specs - can be null.
        projectionClass - the projection to be used, must not be null.
        fields - the 'fields' to be restricted in the SQL, can be null.
        sort - sort specification, can be null.
        Returns:
        a List with the entities found, otherwise Collections.emptyList()
      • findAllProjected

        default <P> List<P> findAllProjected​(@Nullable
                                             org.springframework.data.jpa.domain.Specification<T> specs,
                                             Class<P> projectionClass,
                                             @Nullable
                                             Collection<String> fields)