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 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 com.totvs.tjf.api.jpa.repository.ApiJpaQueryByExampleWithDynamicProjection
findAllProjected, findAllProjected, findAllProjectedBy, findOneProjected, findOneProjectedBy
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 theApiFieldRequest
, matching the givenSpecification
orOptional.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, 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
ApiJpaCollectionResult
with 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
ApiJpaCollectionResult
with 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 givenSpecification
for theApiPageRequest
.- 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 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 givenSpecification
for 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
ApiJpaCollectionResult
with 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 theApiPageRequest
withApiSortRequest
.- 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 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 theApiPageRequest
withApiSortRequest
.- 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 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 givenSpecification
for theApiPageRequest
withApiSortRequest
.- 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 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 givenSpecification
for theApiPageRequest
withApiSortRequest
.- 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 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
ApiJpaCollectionResult
with 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 givenSpecification
for theApiPageRequest
.- 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 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 theApiPageRequest
withApiSortRequest
.- 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 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 givenSpecification
for theApiPageRequest
withApiSortRequest
.- 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 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 givenSpecification
for theApiPageRequest
.- Parameters:
pageRequest
- can be null.specs
- can be null.- Returns:
- a
ApiJpaCollectionResult
with 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 theApiPageRequest
withApiSortRequest
.- Parameters:
pageRequest
- can be null.sortRequest
- can be null.- Returns:
- a
ApiJpaCollectionResult
with 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 givenSpecification
for theApiPageRequest
withApiSortRequest
.- Parameters:
pageRequest
- can be null.sortRequest
- can be null.specs
- can be null.- Returns:
- a
ApiJpaCollectionResult
with 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 theApiPageRequest
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, 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:
true
if has at least one record in the next page, otherwisefalse
-