org.ektorp.impl
Class BulkDocumentBean<T>
java.lang.Object
org.ektorp.impl.BulkDocumentBean<T>
public class BulkDocumentBean<T>
- extends Object
This bean is designed so that, when marshaled as JSON using Jackson, it is handled as a bulk request by CouchDB.
Put this into a JacksonableEntity (org.apache.http.HttpEntity) in order to get HttpClient to marshal it on the request stream.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BulkDocumentBean
public BulkDocumentBean()
BulkDocumentBean
public BulkDocumentBean(Collection<T> documents,
boolean allOrNothing)
isAllOrNothing
public boolean isAllOrNothing()
setAllOrNothing
public void setAllOrNothing(boolean allOrNothing)
getDocuments
public Collection<T> getDocuments()
setDocuments
public void setDocuments(Collection<T> documents)
Copyright © 2017. All rights reserved.