Module spring.data.mongodb
Interface ReactiveInsertOperation
- All Known Subinterfaces:
ReactiveFluentMongoOperations,ReactiveMongoOperations
- All Known Implementing Classes:
ReactiveMongoTemplate
public interface ReactiveInsertOperation
ReactiveInsertOperation allows creation and execution of reactive MongoDB insert and bulk insert operations
in a fluent API style. The collection to operate on is by default derived from the initial domainType and can be defined there via
Document. Using inCollection allows to override the
collection name for the execution.
insert(Jedi.class)
.inCollection("star-wars")
.one(luke);
- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCollection override (optional).static interfacestatic interfaceCompose insert execution by calling one of the terminating methods. -
Method Summary
Modifier and TypeMethodDescriptionStart creating an insert operation for given domainType.
-
Method Details
-
insert
Start creating an insert operation for given domainType.- Parameters:
domainType- must not be null.- Returns:
- new instance of
ReactiveInsertOperation.ReactiveInsert. Never null. - Throws:
IllegalArgumentException- if domainType is null.
-