org.ektorp.impl
Class BulkDocumentBean<T>

java.lang.Object
  extended by 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.


Constructor Summary
BulkDocumentBean()
           
BulkDocumentBean(Collection<T> documents, boolean allOrNothing)
           
 
Method Summary
 Collection<T> getDocuments()
           
 boolean isAllOrNothing()
           
 void setAllOrNothing(boolean allOrNothing)
           
 void setDocuments(Collection<T> documents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkDocumentBean

public BulkDocumentBean()

BulkDocumentBean

public BulkDocumentBean(Collection<T> documents,
                        boolean allOrNothing)
Method Detail

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.