public class MongoItemWriter
extends java.lang.Object
implements org.springframework.batch.item.ItemWriter<java.lang.Object>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
MongoItemWriter(org.springframework.data.mongodb.core.MongoOperations mongoOperations) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.lang.String |
getCollectionName() |
void |
setCollectionName(java.lang.String collectionName) |
void |
write(java.util.List<? extends java.lang.Object> items) |
public MongoItemWriter(org.springframework.data.mongodb.core.MongoOperations mongoOperations)
public java.lang.String getCollectionName()
public void setCollectionName(java.lang.String collectionName)
public void write(java.util.List<? extends java.lang.Object> items) throws java.lang.Exception
write
in interface org.springframework.batch.item.ItemWriter<java.lang.Object>
java.lang.Exception
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception