Interface ReactiveUpsertOperation
- All Known Subinterfaces:
FluentR2dbcOperations, R2dbcEntityOperations
- All Known Implementing Classes:
R2dbcEntityTemplate
public interface ReactiveUpsertOperation
The
ReactiveUpsertOperation interface allows creation and execution of UPSERT (insert-or-update)
operations in a fluent API style.
By default, the table to operate on is derived from the initial domainType and can be defined there via
Table annotation. Using inTable allows overriding
the table name for the execution.
Note: Upserts currently do not support optimistic locking.
upsert(Jedi.class)
.inTable("star_wars")
.using(luke);
- Since:
- 4.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheReactiveUpsertOperation.ReactiveUpsertinterface provides methods for constructingUPSERToperations in a fluent way.static interfaceTriggerUPSERTexecution by calling one of the terminating methods.static interfaceTable override (optional). -
Method Summary
-
Method Details
-
upsert
Begin creating anUPSERToperation for givendomainType.- Type Parameters:
T-typeof the application domain object.- Parameters:
domainType-typeof the domain object to upsert; must not be null.- Returns:
- new instance of
ReactiveUpsertOperation.ReactiveUpsert. - Throws:
IllegalArgumentException- ifdomainTypeis null.- See Also:
-