Interface ReactiveSelectOperation
- All Known Subinterfaces:
FluentR2dbcOperations
,R2dbcEntityOperations
- All Known Implementing Classes:
R2dbcEntityTemplate
public interface ReactiveSelectOperation
The
ReactiveSelectOperation
interface allows creation and execution of SELECT
operations in a fluent
API style.
The starting domainType is used for mapping the Query
provided via matching
. By default,
the originating domainType is also used for mapping back the result from the Row
.
However, it is possible to define an different returnType via as
to mapping the result.
By default, the table to operate on is derived from the initial domainType and can be defined there via
the Table
annotation. Using inTable
allows to
override the table name for the execution.
select(Human.class)
.from("star_wars")
.as(Jedi.class)
.matching(query(where("firstname").is("luke")))
.all();
- Since:
- 1.1
- Author:
- Mark Paluch
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
TheReactiveSelectOperation.ReactiveSelect
interface provides methods for constructingSELECT
operations in a fluent way.static interface
Result type override (optional).static interface
Define aQuery
used as the filter for theSELECT
.static interface
Table override (optional).static interface
TriggerSELECT
execution by calling one of the terminating methods. -
Method Summary
-
Method Details
-
select
Begin creating aSELECT
operation for the givendomainType
.- Type Parameters:
T
-type
of the application domain object.- Parameters:
domainType
-type
of the domain object to query; must not be null.- Returns:
- new instance of
ReactiveSelectOperation.ReactiveSelect
. - Throws:
IllegalArgumentException
- ifdomainType
is null.- See Also:
-