Interface ExecutableUpdateOperation
- All Known Subinterfaces:
CassandraAdminOperations,CassandraOperations,FluentCassandraOperations
- All Known Implementing Classes:
CassandraAdminTemplate,CassandraTemplate
public interface ExecutableUpdateOperation
ExecutableUpdateOperation allows creation and execution of Cassandra UPDATE operation in a fluent API
style.
The starting domainType is used for mapping the Query provided via matching, as well as
the Update provided via apply into the Cassandra specific representations. The table to operate on is
by default derived from the initial domainType and can be defined there via
Table. Using inTable allows the 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();
- Since:
- 2.1
- Author:
- Mark Paluch, John Blum
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheExecutableUpdateOperation.ExecutableUpdateinterface provides methods for constructingUPDATEoperations in a fluent way.static interfacestatic interfaceFiltering (optional).static 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
ExecutableUpdateOperation.ExecutableUpdate. - Throws:
IllegalArgumentException- ifdomainTypeis null.
-