Interface ReactorJpaSpecificationExecutor<T>
- Type Parameters:
T
- The entity type
- All Superinterfaces:
ReactiveStreamsJpaSpecificationExecutor<T>
public interface ReactorJpaSpecificationExecutor<T>
extends ReactiveStreamsJpaSpecificationExecutor<T>
Interface representing Reactor version of
JpaSpecificationExecutor
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription@NonNull reactor.core.publisher.Mono<Long>
count
(@Nullable PredicateSpecification<T> spec) Returns the number of instances that the givenQuerySpecification
will return.@NonNull reactor.core.publisher.Mono<Long>
count
(@Nullable QuerySpecification<T> spec) Returns the number of instances that the givenQuerySpecification
will return.@NonNull reactor.core.publisher.Mono<Long>
deleteAll
(@Nullable DeleteSpecification<T> spec) Deletes all entities matching the givenDeleteSpecification
.@NonNull reactor.core.publisher.Mono<Long>
deleteAll
(@Nullable PredicateSpecification<T> spec) Deletes all entities matching the givenPredicateSpecification
.@NonNull reactor.core.publisher.Mono<Boolean>
exists
(PredicateSpecification<T> spec) Returns whether an instance was found for the givenPredicateSpecification
.@NonNull reactor.core.publisher.Mono<Boolean>
exists
(QuerySpecification<T> spec) Returns whether an instance was found for the givenQuerySpecification
.@NonNull reactor.core.publisher.Flux<T>
findAll
(@Nullable PredicateSpecification<T> spec) Returns all entities matching the givenPredicateSpecification
.@NonNull reactor.core.publisher.Flux<T>
findAll
(@Nullable PredicateSpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecification
andSort
.@NonNull reactor.core.publisher.Flux<T>
findAll
(@Nullable QuerySpecification<T> spec) Returns all entities matching the givenQuerySpecification
.@NonNull reactor.core.publisher.Flux<T>
findAll
(@Nullable QuerySpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecification
andSort
.findAll
(PredicateSpecification<T> spec, Pageable pageable) Returns aPage
of entities matching the givenPredicateSpecification
.findAll
(QuerySpecification<T> spec, Pageable pageable) Returns aPage
of entities matching the givenQuerySpecification
.@NonNull reactor.core.publisher.Mono<T>
findOne
(@Nullable PredicateSpecification<T> spec) Returns a single entity matching the givenPredicateSpecification
.@NonNull reactor.core.publisher.Mono<T>
findOne
(@Nullable QuerySpecification<T> spec) Returns a single entity matching the givenQuerySpecification
.@NonNull reactor.core.publisher.Mono<Long>
updateAll
(@Nullable UpdateSpecification<T> spec) Updates all entities matching the givenUpdateSpecification
.
-
Method Details
-
findOne
@NonNull @NonNull reactor.core.publisher.Mono<T> findOne(@Nullable @Nullable QuerySpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns a single entity matching the givenQuerySpecification
.- Specified by:
findOne
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- optional found result
-
findOne
@NonNull @NonNull reactor.core.publisher.Mono<T> findOne(@Nullable @Nullable PredicateSpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns a single entity matching the givenPredicateSpecification
.- Specified by:
findOne
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- optional found result
-
findAll
@NonNull @NonNull reactor.core.publisher.Flux<T> findAll(@Nullable @Nullable QuerySpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns all entities matching the givenQuerySpecification
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- found results
-
findAll
@NonNull @NonNull reactor.core.publisher.Flux<T> findAll(@Nullable @Nullable PredicateSpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns all entities matching the givenPredicateSpecification
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- found results
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns aPage
of entities matching the givenQuerySpecification
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specificationpageable
- The pageable object- Returns:
- a page
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns aPage
of entities matching the givenPredicateSpecification
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specificationpageable
- The pageable object- Returns:
- a page
-
findAll
@NonNull @NonNull reactor.core.publisher.Flux<T> findAll(@Nullable @Nullable QuerySpecification<T> spec, Sort sort) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns all entities matching the givenQuerySpecification
andSort
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specificationsort
- The sort object- Returns:
- found results
-
findAll
@NonNull @NonNull reactor.core.publisher.Flux<T> findAll(@Nullable @Nullable PredicateSpecification<T> spec, Sort sort) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns all entities matching the givenQuerySpecification
andSort
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specificationsort
- The sort object- Returns:
- found results
-
count
@NonNull @NonNull reactor.core.publisher.Mono<Long> count(@Nullable @Nullable QuerySpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns the number of instances that the givenQuerySpecification
will return.- Specified by:
count
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- the number of instances.
-
count
@NonNull @NonNull reactor.core.publisher.Mono<Long> count(@Nullable @Nullable PredicateSpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns the number of instances that the givenQuerySpecification
will return.- Specified by:
count
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- the number of instances.
-
exists
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns whether an instance was found for the givenQuerySpecification
.- Specified by:
exists
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- the number of instances.
-
exists
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Returns whether an instance was found for the givenPredicateSpecification
.- Specified by:
exists
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The query specification- Returns:
- the number of instances.
-
deleteAll
@NonNull @NonNull reactor.core.publisher.Mono<Long> deleteAll(@Nullable @Nullable DeleteSpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Deletes all entities matching the givenDeleteSpecification
.- Specified by:
deleteAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The delete specification- Returns:
- the number records deleted.
-
deleteAll
@NonNull @NonNull reactor.core.publisher.Mono<Long> deleteAll(@Nullable @Nullable PredicateSpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Deletes all entities matching the givenPredicateSpecification
.- Specified by:
deleteAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The delete specification- Returns:
- the number records deleted.
-
updateAll
@NonNull @NonNull reactor.core.publisher.Mono<Long> updateAll(@Nullable @Nullable UpdateSpecification<T> spec) Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Updates all entities matching the givenUpdateSpecification
.- Specified by:
updateAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- The update specification- Returns:
- the number records updated.
-