Module spring.data.r2dbc
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheReactiveUpdateOperation.ReactiveUpdateinterface provides methods for constructingUPDATEoperations in a fluent way.static interfaceTriggerUPDATEexecution by calling one of the terminating methods.static interfaceDefine aQueryused as the filter for theUpdate.static interfaceTable override (optional). -
Method Summary
-
Method Details
-
update
Begin creating anUPDATEoperation for the givendomainType.- Parameters:
domainType-typeof domain object to update; must not be null.- Returns:
- new instance of
ReactiveUpdateOperation.ReactiveUpdate. - Throws:
IllegalArgumentException- ifdomainTypeis null.- See Also:
-