public interface ReactiveUpdateOperation
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();
Modifier and Type | Interface and Description |
---|---|
static interface |
ReactiveUpdateOperation.ReactiveUpdate
The
ReactiveUpdateOperation.ReactiveUpdate interface provides methods for constructing UPDATE operations in a fluent way. |
static interface |
ReactiveUpdateOperation.TerminatingUpdate
Trigger
UPDATE execution by calling one of the terminating methods. |
static interface |
ReactiveUpdateOperation.UpdateWithQuery
Define a
Query used as the filter for the Update . |
static interface |
ReactiveUpdateOperation.UpdateWithTable
Table override (optional).
|
Modifier and Type | Method and Description |
---|---|
ReactiveUpdateOperation.ReactiveUpdate |
update(Class<?> domainType)
Begin creating an
UPDATE operation for the given domainType . |
ReactiveUpdateOperation.ReactiveUpdate update(Class<?> domainType)
UPDATE
operation for the given domainType
.domainType
- type
of domain object to update; must not be null.ReactiveUpdateOperation.ReactiveUpdate
.IllegalArgumentException
- if domainType
is null.ReactiveUpdateOperation.ReactiveUpdate
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.