Top Description Methods
org.springframework.r2dbc.core

public Interface RowsFetchSpec<T>

Known Direct Subinterfaces
org.springframework.r2dbc.core.FetchSpec
Type Parameters
<T>
the row result type
Imports
reactor.core.publisher.Flux, .Mono

Contract for fetching tabular results.
Author
Mark Paluch
Since
5.3

Method Summary

Modifier and TypeMethod and Description
public Flux<T>

Returns:

a Flux emitting all results
all
()

Get all matching elements.

public Mono<T>

Returns:

a Mono emitting the first element, or Mono#empty() if no match found
first
()

Get the first or no result.

public Mono<T>

Returns:

a Mono emitting one element, or Mono#empty() if no match found. Completes with IncorrectResultSizeDataAccessException if more than one match found
one
()

Get exactly zero or one result.

Method Detail

allback to summary
public Flux<T> all()

Get all matching elements.

Returns:Flux<T>

a Flux emitting all results

firstback to summary
public Mono<T> first()

Get the first or no result.

Returns:Mono<T>

a Mono emitting the first element, or Mono#empty() if no match found

oneback to summary
public Mono<T> one()

Get exactly zero or one result.

Returns:Mono<T>

a Mono emitting one element, or Mono#empty() if no match found. Completes with IncorrectResultSizeDataAccessException if more than one match found