src/main/java/org/lightcouch/CouchDbClientBase.java
public void batch(Object object) {
		assertNotEmpty(object, "object");
		HttpResponse response = null;
		try { 
			URI uri = buildUri(getDBUri()).query("batch", "ok").build();
			response = post(uri, getGson().toJson(object));
		} finally {
			close(response);
		}
	}
public void batch(Object object) {
		assertNotEmpty(object, "object");
		HttpResponse response = null;
		try { 
			URI uri = buildUri(getDBUri()).query("batch", "ok").build();
			response = post(uri, getGson().toJson(object));
		} finally {
			close(response);
		}
	}
public void batch ( Object object ) { assertNotEmpty ( object , "object" ) ; HttpResponse response = null ; try { URI uri = buildUri ( getDBUri ( ) ) . query ( "batch" , "ok" ) . build ( ) ; response = post ( uri , getGson ( ) . toJson ( object ) ) ; } finally { close ( response ) ; } }
Saves a document with <tt>batch=ok</tt> query param.
@param object The object to save.
Saves a document with <tt > batch = ok< / tt > query param .