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
Modifier and TypeInterfaceDescriptionstatic interface
TheExecutableUpdateOperation.ExecutableUpdate
interface provides methods for constructingUPDATE
operations in a fluent way.static interface
static interface
Filtering (optional).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
ExecutableUpdateOperation.ExecutableUpdate
. - Throws:
IllegalArgumentException
- ifdomainType
is null.
-