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();
ExecutableUpdateOperation,
Query,
Update| Modifier and Type | Interface and Description |
|---|---|
static interface |
ExecutableUpdateOperation.ExecutableUpdate
The
ExecutableUpdateOperation.ExecutableUpdate interface provides methods for constructing UPDATE operations
in a fluent way. |
static interface |
ExecutableUpdateOperation.TerminatingUpdate
|
static interface |
ExecutableUpdateOperation.UpdateWithQuery
Filtering (optional).
|
static interface |
ExecutableUpdateOperation.UpdateWithTable
Table override (optional).
|
| Modifier and Type | Method and Description |
|---|---|
ExecutableUpdateOperation.ExecutableUpdate |
update(Class<?> domainType)
Begin creating an
UPDATE operation for the given domainType. |
ExecutableUpdateOperation.ExecutableUpdate update(Class<?> domainType)
UPDATE operation for the given domainType.domainType - type of domain object to update; must not be null.ExecutableUpdateOperation.ExecutableUpdate.IllegalArgumentException - if domainType is null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.