Interface ReactiveStreamsJpaSpecificationExecutor<T>
- Type Parameters:
T- The entity type
- All Known Subinterfaces:
ReactorJpaSpecificationExecutor<T>
public interface ReactiveStreamsJpaSpecificationExecutor<T>
Interface representing reactive streams version of
JpaSpecificationExecutor.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<Long>count(PredicateSpecification<T> spec) Returns the number of instances that the givenQuerySpecificationwill return.org.reactivestreams.Publisher<Long>count(QuerySpecification<T> spec) Returns the number of instances that the givenQuerySpecificationwill return.org.reactivestreams.Publisher<Long>deleteAll(DeleteSpecification<T> spec) Deletes all entities matching the givenDeleteSpecification.org.reactivestreams.Publisher<Long>deleteAll(PredicateSpecification<T> spec) Deletes all entities matching the givenPredicateSpecification.org.reactivestreams.Publisher<Boolean>exists(PredicateSpecification<T> spec) Returns whether an instance was found for the givenPredicateSpecification.org.reactivestreams.Publisher<Boolean>exists(QuerySpecification<T> spec) Returns whether an instance was found for the givenQuerySpecification.org.reactivestreams.Publisher<T>findAll(PredicateSpecification<T> spec) Returns all entities matching the givenPredicateSpecification.findAll(PredicateSpecification<T> spec, Pageable pageable) Returns aPageof entities matching the givenPredicateSpecification.org.reactivestreams.Publisher<T>findAll(PredicateSpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecificationandSort.org.reactivestreams.Publisher<T>findAll(QuerySpecification<T> spec) Returns all entities matching the givenQuerySpecification.findAll(QuerySpecification<T> spec, Pageable pageable) Returns aPageof entities matching the givenQuerySpecification.org.reactivestreams.Publisher<T>findAll(QuerySpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecificationandSort.org.reactivestreams.Publisher<T>findOne(PredicateSpecification<T> spec) Returns a single entity matching the givenPredicateSpecification.org.reactivestreams.Publisher<T>findOne(QuerySpecification<T> spec) Returns a single entity matching the givenQuerySpecification.org.reactivestreams.Publisher<Long>updateAll(UpdateSpecification<T> spec) Updates all entities matching the givenUpdateSpecification.
-
Method Details
-
findOne
Returns a single entity matching the givenQuerySpecification.- Parameters:
spec- The query specification- Returns:
- optional found result
-
findOne
Returns a single entity matching the givenPredicateSpecification.- Parameters:
spec- The query specification- Returns:
- optional found result
-
findAll
Returns all entities matching the givenQuerySpecification.- Parameters:
spec- The query specification- Returns:
- found results
-
findAll
Returns all entities matching the givenPredicateSpecification.- Parameters:
spec- The query specification- Returns:
- found results
-
findAll
@NonNull org.reactivestreams.Publisher<Page<T>> findAll(@Nullable QuerySpecification<T> spec, Pageable pageable) Returns aPageof entities matching the givenQuerySpecification.- Parameters:
spec- The query specificationpageable- The pageable object- Returns:
- a page
-
findAll
@NonNull org.reactivestreams.Publisher<Page<T>> findAll(@Nullable PredicateSpecification<T> spec, Pageable pageable) Returns aPageof entities matching the givenPredicateSpecification.- Parameters:
spec- The query specificationpageable- The pageable object- Returns:
- a page
-
findAll
Returns all entities matching the givenQuerySpecificationandSort.- Parameters:
spec- The query specificationsort- The sort object- Returns:
- found results
-
findAll
@NonNull org.reactivestreams.Publisher<T> findAll(@Nullable PredicateSpecification<T> spec, Sort sort) Returns all entities matching the givenQuerySpecificationandSort.- Parameters:
spec- The query specificationsort- The sort object- Returns:
- found results
-
count
Returns the number of instances that the givenQuerySpecificationwill return.- Parameters:
spec- The query specification- Returns:
- the number of instances.
-
count
Returns the number of instances that the givenQuerySpecificationwill return.- Parameters:
spec- The query specification- Returns:
- the number of instances.
-
exists
Returns whether an instance was found for the givenQuerySpecification.- Parameters:
spec- The query specification- Returns:
- the number of instances.
- Since:
- 3.8
-
exists
Returns whether an instance was found for the givenPredicateSpecification.- Parameters:
spec- The query specification- Returns:
- the number of instances.
- Since:
- 3.8
-
deleteAll
Deletes all entities matching the givenDeleteSpecification.- Parameters:
spec- The delete specification- Returns:
- the number records deleted.
-
deleteAll
Deletes all entities matching the givenPredicateSpecification.- Parameters:
spec- The delete specification- Returns:
- the number records deleted.
-
updateAll
Updates all entities matching the givenUpdateSpecification.- Parameters:
spec- The update specification- Returns:
- the number records updated.
-