Interface ApiJpaQueryByExampleWithDynamicProjection<T>

All Superinterfaces:
org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, JpaSpecificationProjectionExecutor<T>
All Known Subinterfaces:
ApiJpaRepository<T>

public interface ApiJpaQueryByExampleWithDynamicProjection<T> extends JpaSpecificationProjectionExecutor<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default <P> com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<P>
    findAllProjected(org.springframework.data.domain.Example<T> example, Class<P> projection, com.totvs.tjf.api.context.request.ApiPageRequest page)
    Deprecated, for removal: This API element is subject to removal in a future version. 
    default <P> com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<P>
    findAllProjected(org.springframework.data.domain.Example<T> example, Class<P> projection, com.totvs.tjf.api.context.request.ApiSortedPageRequest sortedPage)
    Deprecated, for removal: This API element is subject to removal in a future version. 
    default <P> org.springframework.data.domain.Page<P>
    findAllProjectedBy(org.springframework.data.domain.Example<T> example, Class<P> projection, org.springframework.data.domain.Pageable pageable)
     
    default <P> Optional<P>
    findOneProjected(org.springframework.data.domain.Example<T> example, Class<P> projection)
    Deprecated, for removal: This API element is subject to removal in a future version. 
    default <P> Optional<P>
    findOneProjectedBy(org.springframework.data.domain.Example<T> example, Class<P> projection)
     

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, exists, findAll, findAll, findAll, findOne

    Methods inherited from interface com.totvs.tjf.api.jpa.data.repository.JpaSpecificationProjectionExecutor

    findAllProjectedBy, findAllProjectedBy, findAllProjectedBy, findOneProjectedBy
  • Method Details

    • findOneProjectedBy

      default <P> Optional<P> findOneProjectedBy(org.springframework.data.domain.Example<T> example, Class<P> projection)
    • findOneProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default <P> Optional<P> findOneProjected(org.springframework.data.domain.Example<T> example, Class<P> projection)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • findAllProjectedBy

      default <P> org.springframework.data.domain.Page<P> findAllProjectedBy(org.springframework.data.domain.Example<T> example, Class<P> projection, org.springframework.data.domain.Pageable pageable)
    • findAllProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default <P> com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<P> findAllProjected(org.springframework.data.domain.Example<T> example, Class<P> projection, com.totvs.tjf.api.context.request.ApiSortedPageRequest sortedPage)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • findAllProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default <P> com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<P> findAllProjected(org.springframework.data.domain.Example<T> example, Class<P> projection, @Nullable com.totvs.tjf.api.context.request.ApiPageRequest page)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities for the ApiPageRequest.
      Parameters:
      example - can not be null.
      projection - the projection to be used, must not be null.
      page - can not be null.
      Returns:
      a ApiJpaCollectionResult with the projections of entities found, otherwise an empty ApiJpaCollectionResult.