org.ektorp
Class BulkDeleteDocument

java.lang.Object
  extended by org.ektorp.BulkDeleteDocument
All Implemented Interfaces:
Serializable

public class BulkDeleteDocument
extends Object
implements Serializable

This class can be used to delete documents in bulk operations. Add an instance for each document to be deleted to the objects collection.

Author:
henrik lundgren
See Also:
Serialized Form

Nested Class Summary
static class BulkDeleteDocument.Serializer
           
 
Constructor Summary
BulkDeleteDocument(String id, String rev)
           
 
Method Summary
 boolean equals(Object o)
           
 String getId()
           
 String getRevision()
           
 int hashCode()
           
static BulkDeleteDocument of(Object o)
          Will create a bulk delete document based on the specified object.
 void setRevision(String s)
          Dummy setter, only exists because the BulkOperationResponseHandler tries to set revision on all objects, no matter what.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkDeleteDocument

public BulkDeleteDocument(String id,
                          String rev)
Method Detail

of

public static BulkDeleteDocument of(Object o)
Will create a bulk delete document based on the specified object.

Parameters:
o -
Returns:

getId

public String getId()

getRevision

public String getRevision()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setRevision

public void setRevision(String s)
Dummy setter, only exists because the BulkOperationResponseHandler tries to set revision on all objects, no matter what.

Parameters:
s -


Copyright © 2011. All Rights Reserved.