Interface ApiJpaRepository<T>

All Superinterfaces:
ApiJpaQueryByExampleWithDynamicProjection<T>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, JpaSpecificationProjectionExecutor<T>

@NoRepositoryBean @Deprecated(since="3.0.0-RELEASE", forRemoval=true) public interface ApiJpaRepository<T> extends JpaSpecificationProjectionExecutor<T>, ApiJpaQueryByExampleWithDynamicProjection<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Standard interface to JPA repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAll(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAll(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAll(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAllProjected(com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAllProjected(com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAllProjected(com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T>
    findAllProjected(com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, org.springframework.data.jpa.domain.Specification<T> specs, com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    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(Class<P> projectionClass, com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, org.springframework.data.jpa.domain.Specification<T> specs, com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default Optional<T>
    findOneProjected(org.springframework.data.jpa.domain.Specification<T> specs, com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default boolean
    hasMorePages(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default boolean
    hasMorePages(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, org.springframework.data.jpa.domain.Specification<T> specs)
    Deprecated, for removal: This API element is subject to removal in a future version.

    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

    • findOneProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default Optional<T> findOneProjected(@Nullable org.springframework.data.jpa.domain.Specification<T> specs, @Nullable com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a single entity, with restricted 'fields' by the ApiFieldRequest, matching the given Specification or Optional.empty() if none found.
      Parameters:
      specs - can be null.
      fieldRequest - the 'fields' to be restricted in the SQL, can be null.
      Returns:
      an Optional instance with the projections of the requested entity if found any, otherwise Optional.empty().
    • findAllProjected

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

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

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

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

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

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

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

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

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAllProjected(@Nullable com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, @Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities, with restricted 'fields' by the ApiFieldRequest, for the ApiPageRequest.
      Parameters:
      fieldRequest - the 'fields' to be restricted in the SQL, can be null.
      pageRequest - can be null.
      Returns:
      a ApiJpaCollectionResult with the projections of entities found, otherwise an empty ApiJpaCollectionResult.
    • findAllProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAllProjected(@Nullable com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, @Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable org.springframework.data.jpa.domain.Specification<T> specs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities, with restricted 'fields' by the ApiFieldRequest, matching the given Specification for the ApiPageRequest.
      Parameters:
      fieldRequest - the 'fields' to be restricted in the SQL, can be null.
      pageRequest - can be null.
      specs - can be null.
      Returns:
      a ApiJpaCollectionResult with the projections of entities found, otherwise an empty ApiJpaCollectionResult.
    • findAllProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAllProjected(@Nullable com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, @Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable com.totvs.tjf.api.context.request.ApiSortRequest sortRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities, with restricted 'fields' by the ApiFieldRequest, for the ApiPageRequest with ApiSortRequest.
      Parameters:
      fieldRequest - the 'fields' to be restricted in the SQL, can be null.
      pageRequest - can be null.
      sortRequest - can be null.
      Returns:
      a ApiJpaCollectionResult with the projections of entities found, otherwise an empty ApiJpaCollectionResult.
    • findAllProjected

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAllProjected(@Nullable com.totvs.tjf.api.context.request.ApiFieldRequest fieldRequest, @Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, @Nullable org.springframework.data.jpa.domain.Specification<T> specs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities, with restricted 'fields' by the ApiFieldRequest, matching the given Specification for the ApiPageRequest with ApiSortRequest.
      Parameters:
      fieldRequest - the 'fields' to be restricted in the SQL, can be null.
      pageRequest - can be null.
      sortRequest - can be null.
      specs - can be null.
      Returns:
      a ApiJpaCollectionResult with the projections of entities found, otherwise an empty ApiJpaCollectionResult.
    • findAll

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAll(@Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable org.springframework.data.jpa.domain.Specification<T> specs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities, matching the given Specification for the ApiPageRequest.
      Parameters:
      pageRequest - can be null.
      specs - can be null.
      Returns:
      a ApiJpaCollectionResult with the entities found, otherwise an empty ApiJpaCollectionResult.
    • findAll

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAll(@Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable com.totvs.tjf.api.context.request.ApiSortRequest sortRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities for the ApiPageRequest with ApiSortRequest.
      Parameters:
      pageRequest - can be null.
      sortRequest - can be null.
      Returns:
      a ApiJpaCollectionResult with the entities found, otherwise an empty ApiJpaCollectionResult.
    • findAll

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default com.totvs.tjf.api.context.jpa.ApiJpaCollectionResult<T> findAll(@Nullable com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable com.totvs.tjf.api.context.request.ApiSortRequest sortRequest, @Nullable org.springframework.data.jpa.domain.Specification<T> specs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all entities, matching the given Specification for the ApiPageRequest with ApiSortRequest.
      Parameters:
      pageRequest - can be null.
      sortRequest - can be null.
      specs - can be null.
      Returns:
      a ApiJpaCollectionResult with the entities found, otherwise an empty ApiJpaCollectionResult.
    • hasMorePages

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default boolean hasMorePages(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if the ApiPageRequest has at least one record in the next page.
      Parameters:
      pageRequest - the current page, must not be null.
      Returns:
      true if has at least one record in the next page, otherwise false
    • hasMorePages

      @Deprecated(since="3.0.0-RELEASE", forRemoval=true) default boolean hasMorePages(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest, @Nullable org.springframework.data.jpa.domain.Specification<T> specs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if the ApiPageRequest, matching the given Specification, has at least one record in the next page.
      Parameters:
      pageRequest - the current page, must not be null.
      specs - can be null.
      Returns:
      true if has at least one record in the next page, otherwise false