Package org.springframework.r2dbc.core
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
-
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 withIncorrectResultSizeDataAccessException
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
-