Interface ReactiveUpdateOperation
- All Known Subinterfaces:
ReactiveCassandraOperations
,ReactiveFluentCassandraOperations
- All Known Implementing Classes:
ReactiveCassandraTemplate
public interface ReactiveUpdateOperation
The
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();
-
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
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:
-