committed by
Mahmoud Ben Hassine
parent
83b2a2adf9
commit
5e515473de
@@ -121,6 +121,15 @@ public class MongoItemWriter<T> implements ItemWriter<T>, InitializingBean {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the operating {@link Mode} of the item writer.
|
||||
* @return the operating mode
|
||||
* @since 5.1
|
||||
*/
|
||||
public Mode getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the {@link MongoOperations} to be used to save items to be written.
|
||||
* @param template the template implementation to be used.
|
||||
@@ -146,6 +155,15 @@ public class MongoItemWriter<T> implements ItemWriter<T>, InitializingBean {
|
||||
this.collection = collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Mongo collection name.
|
||||
* @return the collection name
|
||||
* @since 5.1
|
||||
*/
|
||||
public String getCollection() {
|
||||
return collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* If a transaction is active, buffer items to be written just before commit.
|
||||
* Otherwise write items using the provided template.
|
||||
|
||||
Reference in New Issue
Block a user