Module spring.data.cassandra
Interface ReactiveInsertOperation
- All Known Subinterfaces:
ReactiveCassandraOperations,ReactiveFluentCassandraOperations
- All Known Implementing Classes:
ReactiveCassandraTemplate
public interface ReactiveInsertOperation
The
ReactiveInsertOperation interface allows creation and execution of Cassandra INSERT operations in
a fluent API style.
By default,the table to operate on is derived from the initial domainType and can be defined there via
Table annotation. Using inTable allows a developer to
override the table name for the execution.
insert(Jedi.class)
.inTable("star_wars")
.one(luke);
- Since:
- 2.1
- Author:
- Mark Paluch, John Blum
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceApplyInsertOptions(optional).static interfaceTable override (optional).static interfaceTheReactiveInsertOperation.ReactiveInsertinterface provides methods for constructingINSERToperations in a fluent way.static interfaceTriggerINSERTexecution by calling one of the terminating methods. -
Method Summary
-
Method Details
-
insert
Begin creating anINSERToperation for givendomainType.- Type Parameters:
T-typeof the application domain object.- Parameters:
domainType-typeof the domain object to insert; must not be null.- Returns:
- new instance of
ReactiveInsertOperation.ReactiveInsert. - Throws:
IllegalArgumentException- ifdomainTypeis null.- See Also:
-