Interface RowsFetchSpec<T>

Type Parameters:
T - the row result type
All Known Subinterfaces:
FetchSpec<T>

public interface RowsFetchSpec<T>
Contract for fetching tabular results.
Since:
5.3
Author:
Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Flux<T>
    all()
    Get all matching elements.
    reactor.core.publisher.Mono<T>
    Get the first or no result.
    reactor.core.publisher.Mono<T>
    one()
    Get exactly zero or one result.
  • Method Details

    • one

      reactor.core.publisher.Mono<T> one()
      Get exactly zero or one result.
      Returns:
      a Mono emitting one element, or Mono.empty() if no match found. Completes with IncorrectResultSizeDataAccessException if more than one match found
    • first

      reactor.core.publisher.Mono<T> first()
      Get the first or no result.
      Returns:
      a Mono emitting the first element, or Mono.empty() if no match found
    • all

      reactor.core.publisher.Flux<T> all()
      Get all matching elements.
      Returns:
      a Flux emitting all results