java.lang.Object
org.springframework.batch.item.data.builder.MongoItemWriterBuilder<T>
public class MongoItemWriterBuilder<T>
extends Object
Since:
4.0
Author:
Glenn Renfro, Mahmoud Ben Hassine
See Also:
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods
Set the name of the Mongo collection to be written to.
Deprecated, for removal: This API element is subject to removal in a future version.
Set the primary keys to associate with the document being written.
Set the primary keys to associate with the document being written.
template (org.springframework.data.mongodb.core.MongoOperations template)
Set the MongoOperations
to be used to save items to be written.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
MongoItemWriterBuilder
public MongoItemWriterBuilder ()
Method Details
delete
Deprecated, for removal: This API element is subject to removal in a future version.
Indicates if the items being passed to the writer are to be saved or removed from
the data store. If set to false (default), the items will be saved. If set to true,
the items will be removed.
Parameters:
delete
- removal indicator
Returns:
The current instance of the builder
See Also:
mode
Parameters:
mode
- the mode to be used.
Returns:
The current instance of the builder
Since:
5.1
See Also:
template
Set the MongoOperations
to be used to save items to be written.
Parameters:
template
- the template implementation to be used.
Returns:
The current instance of the builder
See Also:
collection
Set the name of the Mongo collection to be written to.
Parameters:
collection
- the name of the collection.
Returns:
The current instance of the builder
See Also:
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:
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:
mode(Mode)
instead.