primaryKeys
Set the primary keys to associate with the document being written. These fields
should uniquely identify a single object.
- Parameters:
primaryKeys
- The keys to use.- Since:
- 5.2.3
- See Also:
MongoItemWriter
build()
MongoItemWriter
.collection(String collection)
mode(MongoItemWriter.Mode mode)
MongoItemWriter.Mode
to be applied by this writer.primaryKeys(String... primaryKeys)
primaryKeys(List<String> primaryKeys)
template(org.springframework.data.mongodb.core.MongoOperations template)
MongoOperations
to be used to save items to be written.MongoItemWriter.Mode
to be applied by this writer. Defaults to
MongoItemWriter.Mode.UPSERT
.mode
- the mode to be used.MongoOperations
to be used to save items to be written.template
- the template implementation to be used.collection
- the name of the collection.primaryKeys
- The keys to use.primaryKeys
- The keys to use.MongoItemWriter
.MongoItemWriter