Module spring.data.cassandra
Interface ExecutableDeleteOperation
- All Known Subinterfaces:
CassandraAdminOperations,CassandraOperations,FluentCassandraOperations
- All Known Implementing Classes:
CassandraAdminTemplate,CassandraTemplate
public interface ExecutableDeleteOperation
ExecutableDeleteOperation allows creation and execution of Cassandra DELETE operations in a fluent
API style.
The starting domainType is used for mapping the Query provided via matching into the
Cassandra specific representation. The table to operate on is by default derived from the initial
domainType and can be defined there via Table.
Using inTable allows to override the table name for the execution.
delete(Jedi.class)
.inTable("star_wars")
.matching(query(where("firstname").is("luke")))
.all();
- Since:
- 2.1
- Author:
- Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFiltering (optional).static interfaceTable override (optional).static interfacetheExecutableDeleteOperation.ExecutableDeleteinterface provides methods for constructingDELETEoperations in a fluent way.static interfaceTriggerDELETEexecution by calling one of the terminating methods. -
Method Summary
-
Method Details
-
delete
Begin creating aDELETEoperation for the givendomainType.- Parameters:
domainType-typeof domain object to delete; must not be null.- Returns:
- new instance of
ExecutableDeleteOperation.ExecutableDelete. - Throws:
IllegalArgumentException- ifdomainTypeis null.- See Also:
-