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 TypeMethodDescriptionreactor.core.publisher.Mono<Long>count(PredicateSpecification<T> spec) Returns the number of instances that the givenQuerySpecificationwill return.reactor.core.publisher.Mono<Long>count(QuerySpecification<T> spec) Returns the number of instances that the givenQuerySpecificationwill return.reactor.core.publisher.Mono<Long>deleteAll(DeleteSpecification<T> spec) Deletes all entities matching the givenDeleteSpecification.reactor.core.publisher.Mono<Long>deleteAll(PredicateSpecification<T> spec) Deletes all entities matching the givenPredicateSpecification.reactor.core.publisher.Mono<Boolean>exists(PredicateSpecification<T> spec) Returns whether an instance was found for the givenPredicateSpecification.reactor.core.publisher.Mono<Boolean>exists(QuerySpecification<T> spec) Returns whether an instance was found for the givenQuerySpecification.reactor.core.publisher.Flux<T>findAll(PredicateSpecification<T> spec) Returns all entities matching the givenPredicateSpecification.findAll(PredicateSpecification<T> spec, Pageable pageable) Returns aPageof entities matching the givenPredicateSpecification.reactor.core.publisher.Flux<T>findAll(PredicateSpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecificationandSort.reactor.core.publisher.Flux<T>findAll(QuerySpecification<T> spec) Returns all entities matching the givenQuerySpecification.findAll(QuerySpecification<T> spec, Pageable pageable) Returns aPageof entities matching the givenQuerySpecification.reactor.core.publisher.Flux<T>findAll(QuerySpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecificationandSort.reactor.core.publisher.Mono<T>findOne(PredicateSpecification<T> spec) Returns a single entity matching the givenPredicateSpecification.reactor.core.publisher.Mono<T>findOne(QuerySpecification<T> spec) Returns a single entity matching the givenQuerySpecification.reactor.core.publisher.Mono<Long>updateAll(UpdateSpecification<T> spec) Updates all entities matching the givenUpdateSpecification.
-
Method Details
-
findOne
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns a single entity matching the givenQuerySpecification.- Specified by:
findOnein interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- optional found result
-
findOne
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns a single entity matching the givenPredicateSpecification.- Specified by:
findOnein interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- optional found result
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns all entities matching the givenQuerySpecification.- Specified by:
findAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- found results
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns all entities matching the givenPredicateSpecification.- Specified by:
findAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- found results
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns aPageof entities matching the givenQuerySpecification.- Specified by:
findAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specificationpageable- The pageable object- Returns:
- a page
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns aPageof entities matching the givenPredicateSpecification.- Specified by:
findAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specificationpageable- The pageable object- Returns:
- a page
-
findAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns all entities matching the givenQuerySpecificationandSort.- Specified by:
findAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specificationsort- The sort object- Returns:
- found results
-
findAll
@NonNull reactor.core.publisher.Flux<T> findAll(@Nullable PredicateSpecification<T> spec, Sort sort) Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns all entities matching the givenQuerySpecificationandSort.- Specified by:
findAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specificationsort- The sort object- Returns:
- found results
-
count
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns the number of instances that the givenQuerySpecificationwill return.- Specified by:
countin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- the number of instances.
-
count
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns the number of instances that the givenQuerySpecificationwill return.- Specified by:
countin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- the number of instances.
-
exists
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns whether an instance was found for the givenQuerySpecification.- Specified by:
existsin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- the number of instances.
-
exists
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorReturns whether an instance was found for the givenPredicateSpecification.- Specified by:
existsin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The query specification- Returns:
- the number of instances.
-
deleteAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorDeletes all entities matching the givenDeleteSpecification.- Specified by:
deleteAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The delete specification- Returns:
- the number records deleted.
-
deleteAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorDeletes all entities matching the givenPredicateSpecification.- Specified by:
deleteAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The delete specification- Returns:
- the number records deleted.
-
updateAll
Description copied from interface:ReactiveStreamsJpaSpecificationExecutorUpdates all entities matching the givenUpdateSpecification.- Specified by:
updateAllin interfaceReactiveStreamsJpaSpecificationExecutor<T>- Parameters:
spec- The update specification- Returns:
- the number records updated.
-