Interface ReactorCriteriaRepositoryOperations

All Superinterfaces:
ReactiveCriteriaCapableRepository, ReactiveCriteriaRepositoryOperations

public interface ReactorCriteriaRepositoryOperations extends ReactiveCriteriaRepositoryOperations
The repository operations that support executing criteria queries.
Since:
4.5.0
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<Number>
    deleteAll(@NonNull jakarta.persistence.criteria.CriteriaDelete<Number> query)
    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>
    updateAll(@NonNull jakarta.persistence.criteria.CriteriaUpdate<Number> query)
    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 interface ReactiveCriteriaRepositoryOperations
      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 interface ReactiveCriteriaRepositoryOperations
      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 interface ReactiveCriteriaRepositoryOperations
      Type Parameters:
      T - The generic type
      Parameters:
      query - The query
      offset - The offset
      limit - 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 interface ReactiveCriteriaRepositoryOperations
      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 interface ReactiveCriteriaRepositoryOperations
      Parameters:
      query - The query
      Returns:
      An optional number with the count of the number of records updated