Interface ReactorJpaSpecificationExecutor<T>
-
- Type Parameters:
T
- The entity type
- All Superinterfaces:
ReactiveStreamsJpaSpecificationExecutor<T>
public interface ReactorJpaSpecificationExecutor<T> extends ReactiveStreamsJpaSpecificationExecutor<T>
Interface to allow execution ofSpecification
s based on the JPA criteria API. Reactor version ofReactiveStreamsJpaSpecificationExecutor
.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Long>
count(Specification<T> spec)
Publishes the number of instances that the givenSpecification
will return.reactor.core.publisher.Flux<T>
findAll(Specification<T> spec)
Publishes all entities matching the givenSpecification
.reactor.core.publisher.Mono<Page<T>>
findAll(Specification<T> spec, Pageable pageable)
Publishes aPage
of entities matching the givenSpecification
.reactor.core.publisher.Flux<T>
findAll(Specification<T> spec, Sort sort)
Publishes all entities matching the givenSpecification
andSort
.reactor.core.publisher.Mono<T>
findOne(Specification<T> spec)
Publishes a single entity matching the givenSpecification
.
-
-
-
Method Detail
-
findOne
reactor.core.publisher.Mono<T> findOne(@Nullable Specification<T> spec)
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Publishes a single entity matching the givenSpecification
.- Specified by:
findOne
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- can be null.- Returns:
- never null.
-
findAll
reactor.core.publisher.Flux<T> findAll(@Nullable Specification<T> spec)
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Publishes all entities matching the givenSpecification
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- can be null.- Returns:
- never null.
-
findAll
reactor.core.publisher.Mono<Page<T>> findAll(@Nullable Specification<T> spec, Pageable pageable)
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Publishes aPage
of entities matching the givenSpecification
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- can be null.pageable
- must not be null.- Returns:
- never null.
-
findAll
reactor.core.publisher.Flux<T> findAll(@Nullable Specification<T> spec, Sort sort)
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Publishes all entities matching the givenSpecification
andSort
.- Specified by:
findAll
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- can be null.sort
- must not be null.- Returns:
- never null.
-
count
reactor.core.publisher.Mono<java.lang.Long> count(@Nullable Specification<T> spec)
Description copied from interface:ReactiveStreamsJpaSpecificationExecutor
Publishes the number of instances that the givenSpecification
will return.- Specified by:
count
in interfaceReactiveStreamsJpaSpecificationExecutor<T>
- Parameters:
spec
- theSpecification
to count instances for. Can be null.- Returns:
- the number of instances.
-
-