Interface ReactorCriteriaRepositoryOperations
- All Superinterfaces:
ReactiveCriteriaCapableRepository
,ReactiveCriteriaRepositoryOperations
The repository operations that support executing criteria queries.
- Since:
- 4.5.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Number>
Executes a delete for the given query and parameter values.<T> reactor.core.publisher.Flux<T>
findAll
(@NonNull jakarta.persistence.criteria.CriteriaQuery<T> query) Finds all results for the given query.<T> reactor.core.publisher.Flux<T>
findAll
(@NonNull jakarta.persistence.criteria.CriteriaQuery<T> query, int offset, int limit) Finds all results for the given query.<R> reactor.core.publisher.Mono<R>
findOne
(@NonNull jakarta.persistence.criteria.CriteriaQuery<R> query) Find one by Query.reactor.core.publisher.Mono<Number>
Executes an update for the given query and parameter values.Methods inherited from interface io.micronaut.data.operations.reactive.ReactiveCriteriaRepositoryOperations
getCriteriaBuilder, reactive
-
Method Details
-
findOne
<R> reactor.core.publisher.Mono<R> findOne(@NonNull @NonNull jakarta.persistence.criteria.CriteriaQuery<R> query) Description copied from interface:ReactiveCriteriaRepositoryOperations
Find one by Query.- Specified by:
findOne
in interfaceReactiveCriteriaRepositoryOperations
- Type Parameters:
R
- The result type- Parameters:
query
- The query- Returns:
- A single result publisher
-
findAll
<T> reactor.core.publisher.Flux<T> findAll(@NonNull @NonNull jakarta.persistence.criteria.CriteriaQuery<T> query) Description copied from interface:ReactiveCriteriaRepositoryOperations
Finds all results for the given query.- Specified by:
findAll
in interfaceReactiveCriteriaRepositoryOperations
- Type Parameters:
T
- The generic type- Parameters:
query
- The query- Returns:
- All result publisher
-
findAll
<T> reactor.core.publisher.Flux<T> findAll(@NonNull @NonNull jakarta.persistence.criteria.CriteriaQuery<T> query, int offset, int limit) Description copied from interface:ReactiveCriteriaRepositoryOperations
Finds all results for the given query.- Specified by:
findAll
in interfaceReactiveCriteriaRepositoryOperations
- Type Parameters:
T
- The generic type- Parameters:
query
- The queryoffset
- The offsetlimit
- The limit- Returns:
- All result publisher
-
updateAll
reactor.core.publisher.Mono<Number> updateAll(@NonNull @NonNull jakarta.persistence.criteria.CriteriaUpdate<Number> query) Description copied from interface:ReactiveCriteriaRepositoryOperations
Executes an update for the given query and parameter values. If it is possible to return the number of objects updated, then do so.- Specified by:
updateAll
in interfaceReactiveCriteriaRepositoryOperations
- Parameters:
query
- The prepared query- Returns:
- An optional number with the count of the number of records updated
-
deleteAll
reactor.core.publisher.Mono<Number> deleteAll(@NonNull @NonNull jakarta.persistence.criteria.CriteriaDelete<Number> query) Description copied from interface:ReactiveCriteriaRepositoryOperations
Executes a delete for the given query and parameter values. If it is possible to return the number of objects deleted, then do so.- Specified by:
deleteAll
in interfaceReactiveCriteriaRepositoryOperations
- Parameters:
query
- The query- Returns:
- An optional number with the count of the number of records updated
-