Interface ReactiveUpdateOperation
- All Known Subinterfaces:
FluentR2dbcOperations
,R2dbcEntityOperations
- All Known Implementing Classes:
R2dbcEntityTemplate
public interface ReactiveUpdateOperation
The
ReactiveUpdateOperation
interface allows creation and execution of UPDATE
operations in a fluent
API style.
The starting domainType is used for mapping the Query
provided via matching
, as well as
the Update
via apply
.
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 a
developer to override the table name for the execution.
update(Jedi.class)
.table("star_wars")
.matching(query(where("firstname").is("luke")))
.apply(update("lastname", "skywalker"))
.all();
- Since:
- 1.1
- Author:
- Mark Paluch
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
TheReactiveUpdateOperation.ReactiveUpdate
interface provides methods for constructingUPDATE
operations in a fluent way.static interface
TriggerUPDATE
execution by calling one of the terminating methods.static interface
Define aQuery
used as the filter for theUpdate
.static interface
Table override (optional). -
Method Summary
-
Method Details
-
update
Begin creating anUPDATE
operation for the givendomainType
.- Parameters:
domainType
-type
of domain object to update; must not be null.- Returns:
- new instance of
ReactiveUpdateOperation.ReactiveUpdate
. - Throws:
IllegalArgumentException
- ifdomainType
is null.- See Also:
-