Package com.totvs.tjf.api.jpa.repository
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 TypeMethodDescriptiondefault 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.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 booleanhasMorePages(com.totvs.tjf.api.context.request.ApiPageRequest pageRequest) Deprecated, for removal: This API element is subject to removal in a future version.default booleanhasMorePages(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 com.totvs.tjf.api.jpa.repository.ApiJpaQueryByExampleWithDynamicProjection
findAllProjected, findAllProjected, findAllProjectedBy, findOneProjected, findOneProjectedByMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, exists, findAll, findAll, findAll, findOneMethods 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 theApiFieldRequest, matching the givenSpecificationorOptional.empty()if none found.- Parameters:
specs- can be null.fieldRequest- the 'fields' to be restricted in the SQL, can be null.- Returns:
- an
Optionalinstance with the projections of the requested entity if found any, otherwiseOptional.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 theApiPageRequest.- Parameters:
projectionClass- the projection to be used, must not be null.pageRequest- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiPageRequest.- Parameters:
projectionClass- the projection to be used, must not be null.pageRequest- can be null.fieldRequest- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 givenSpecificationfor theApiPageRequest.- Parameters:
projectionClass- the projection to be used, must not be null.pageRequest- can be null.specs- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 givenSpecificationfor theApiPageRequest.- 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
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiPageRequestwithApiSortRequest.- Parameters:
projectionClass- the projection to be used, must not be null.pageRequest- can be null.sortRequest- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiPageRequestwithApiSortRequest.- 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
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 givenSpecificationfor theApiPageRequestwithApiSortRequest.- 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
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 givenSpecificationfor theApiPageRequestwithApiSortRequest.- 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
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiFieldRequest, for theApiPageRequest.- Parameters:
fieldRequest- the 'fields' to be restricted in the SQL, can be null.pageRequest- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiFieldRequest, matching the givenSpecificationfor theApiPageRequest.- Parameters:
fieldRequest- the 'fields' to be restricted in the SQL, can be null.pageRequest- can be null.specs- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiFieldRequest, for theApiPageRequestwithApiSortRequest.- Parameters:
fieldRequest- the 'fields' to be restricted in the SQL, can be null.pageRequest- can be null.sortRequest- can be null.- Returns:
- a
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiFieldRequest, matching the givenSpecificationfor theApiPageRequestwithApiSortRequest.- 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
ApiJpaCollectionResultwith the projections of entities found, otherwise an emptyApiJpaCollectionResult.
-
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 givenSpecificationfor theApiPageRequest.- Parameters:
pageRequest- can be null.specs- can be null.- Returns:
- a
ApiJpaCollectionResultwith the entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiPageRequestwithApiSortRequest.- Parameters:
pageRequest- can be null.sortRequest- can be null.- Returns:
- a
ApiJpaCollectionResultwith the entities found, otherwise an emptyApiJpaCollectionResult.
-
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 givenSpecificationfor theApiPageRequestwithApiSortRequest.- Parameters:
pageRequest- can be null.sortRequest- can be null.specs- can be null.- Returns:
- a
ApiJpaCollectionResultwith the entities found, otherwise an emptyApiJpaCollectionResult.
-
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 theApiPageRequesthas at least one record in the next page.- Parameters:
pageRequest- the current page, must not be null.- Returns:
trueif has at least one record in the next page, otherwisefalse
-
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 theApiPageRequest, matching the givenSpecification, has at least one record in the next page.- Parameters:
pageRequest- the current page, must not be null.specs- can be null.- Returns:
trueif has at least one record in the next page, otherwisefalse
-