Interface ReactiveCriteriaRepositoryOperations
- All Superinterfaces:
ReactiveCriteriaCapableRepository
- All Known Subinterfaces:
ReactorCriteriaRepositoryOperations
- All Known Implementing Classes:
ExecutorReactiveOperationsSupportingCriteria
The repository operations that support executing criteria queries.
- Since:
- 4.5.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<Number> Executes a delete for the given query and parameter values.org.reactivestreams.Publisher<Boolean> exists(jakarta.persistence.criteria.CriteriaQuery<?> query) Exists query.<T> org.reactivestreams.Publisher<T> findAll(jakarta.persistence.criteria.CriteriaQuery<T> query) Finds all results for the given query.<T> org.reactivestreams.Publisher<T> findAll(jakarta.persistence.criteria.CriteriaQuery<T> query, int offset, int limit) Finds all results for the given query.<R> org.reactivestreams.Publisher<R> findOne(jakarta.persistence.criteria.CriteriaQuery<R> query) Find one by Query.jakarta.persistence.criteria.CriteriaBuilderreactive()org.reactivestreams.Publisher<Number> Executes an update for the given query and parameter values.
-
Method Details
-
reactive
- Specified by:
reactivein interfaceReactiveCriteriaCapableRepository- Returns:
- The reactive operations.
-
getCriteriaBuilder
jakarta.persistence.criteria.CriteriaBuilder getCriteriaBuilder()- Returns:
- The criteria builder
-
exists
Exists query.- Parameters:
query- The query- Returns:
- True if query returns true or any row
- Since:
- 4.10
-
findOne
@SingleResult <R> org.reactivestreams.Publisher<R> findOne(jakarta.persistence.criteria.CriteriaQuery<R> query) Find one by Query.- Type Parameters:
R- The result type- Parameters:
query- The query- Returns:
- A single result publisher
-
findAll
<T> org.reactivestreams.Publisher<T> findAll(jakarta.persistence.criteria.CriteriaQuery<T> query) Finds all results for the given query.- Type Parameters:
T- The generic type- Parameters:
query- The query- Returns:
- All result publisher
-
findAll
<T> org.reactivestreams.Publisher<T> findAll(jakarta.persistence.criteria.CriteriaQuery<T> query, int offset, int limit) Finds all results for the given query.- Type Parameters:
T- The generic type- Parameters:
query- The queryoffset- The offsetlimit- The limit- Returns:
- All result publisher
-
updateAll
@SingleResult org.reactivestreams.Publisher<Number> updateAll(jakarta.persistence.criteria.CriteriaUpdate<Number> query) Executes an update for the given query and parameter values. If it is possible to return the number of objects updated, then do so.- Parameters:
query- The prepared query- Returns:
- An optional number with the count of the number of records updated
-
deleteAll
@SingleResult org.reactivestreams.Publisher<Number> deleteAll(jakarta.persistence.criteria.CriteriaDelete<Number> query) Executes a delete for the given query and parameter values. If it is possible to return the number of objects deleted, then do so.- Parameters:
query- The query- Returns:
- An optional number with the count of the number of records updated
-