public interface ReactiveUpdateOperation
ReactiveUpdateOperation interface allows creation and execution of Cassandra 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 into the Cassandra specific representations.
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)
.inTable("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
|
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.ReactiveUpdateCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.