Interface ReactiveStreamsJpaSpecificationExecutor<T>
-
- Type Parameters:
T
- The entity type
- All Known Subinterfaces:
ReactorJpaSpecificationExecutor<T>
public interface ReactiveStreamsJpaSpecificationExecutor<T>
Interface to allow execution ofSpecification
s based on the JPA criteria API. Reactive-streams version ofJpaSpecificationExecutor
.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<java.lang.Long>
count(Specification<T> spec)
Publishes the number of instances that the givenSpecification
will return.org.reactivestreams.Publisher<T>
findAll(Specification<T> spec)
Publishes all entities matching the givenSpecification
.org.reactivestreams.Publisher<Page<T>>
findAll(Specification<T> spec, Pageable pageable)
Publishes aPage
of entities matching the givenSpecification
.org.reactivestreams.Publisher<T>
findAll(Specification<T> spec, Sort sort)
Publishes all entities matching the givenSpecification
andSort
.org.reactivestreams.Publisher<T>
findOne(Specification<T> spec)
Publishes a single entity matching the givenSpecification
.
-
-
-
Method Detail
-
findOne
org.reactivestreams.Publisher<T> findOne(@Nullable Specification<T> spec)
Publishes a single entity matching the givenSpecification
.- Parameters:
spec
- can be null.- Returns:
- never null.
-
findAll
org.reactivestreams.Publisher<T> findAll(@Nullable Specification<T> spec)
Publishes all entities matching the givenSpecification
.- Parameters:
spec
- can be null.- Returns:
- never null.
-
findAll
org.reactivestreams.Publisher<Page<T>> findAll(@Nullable Specification<T> spec, Pageable pageable)
Publishes aPage
of entities matching the givenSpecification
.- Parameters:
spec
- can be null.pageable
- must not be null.- Returns:
- never null.
-
findAll
org.reactivestreams.Publisher<T> findAll(@Nullable Specification<T> spec, Sort sort)
Publishes all entities matching the givenSpecification
andSort
.- Parameters:
spec
- can be null.sort
- must not be null.- Returns:
- never null.
-
count
org.reactivestreams.Publisher<java.lang.Long> count(@Nullable Specification<T> spec)
Publishes the number of instances that the givenSpecification
will return.- Parameters:
spec
- theSpecification
to count instances for. Can be null.- Returns:
- the number of instances.
-
-