Interface ExecutableInsertOperation.TerminatingInsert<T>
- All Superinterfaces:
ExecutableInsertOperation.TerminatingBulkInsert<T>
- All Known Subinterfaces:
ExecutableInsertOperation.ExecutableInsert<T>
,ExecutableInsertOperation.InsertWithBulkMode<T>
- Enclosing interface:
- ExecutableInsertOperation
public static interface ExecutableInsertOperation.TerminatingInsert<T>
extends ExecutableInsertOperation.TerminatingBulkInsert<T>
Trigger insert execution by calling one of the terminating methods.
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends T>
all
(Collection<? extends T> objects) Insert a collection of objects.Insert exactly one object.Methods inherited from interface org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert
bulk
-
Method Details
-
one
Insert exactly one object.- Parameters:
object
- must not be null.- Returns:
- the inserted object.
- Throws:
IllegalArgumentException
- if object is null.
-
all
Insert a collection of objects.- Parameters:
objects
- must not be null.- Returns:
- the inserted objects.
- Throws:
IllegalArgumentException
- if objects is null.
-