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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheReactiveUpdateOperation.ReactiveUpdateinterface provides methods for constructingUPDATEoperations in a fluent way.static interfaceTriggerUPDATEexecution by calling one of the terminating methods.static interfacestatic 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:
-