org.ektorp.changes
Interface DocumentChange

All Known Implementing Classes:
StdDocumentChange

public interface DocumentChange

Represents a document change within a database.

Author:
henrik lundgren

Method Summary
 String getDoc()
          If the feed has been setup to include docs, it will be available through this accessor.
 com.fasterxml.jackson.databind.JsonNode getDocAsNode()
          If the feed has been setup to include docs, it will be available through this accessor.
 String getId()
           
 String getRevision()
           
 List<String> getRevisions()
           
 int getSequence()
           
 String getStringSequence()
           
 boolean isDeleted()
           
 

Method Detail

getSequence

int getSequence()
Returns:
the database sequence number in which this change took place.

getStringSequence

String getStringSequence()
Returns:
the database string format sequence number in which this change took place (e.g. Cloudant).

getId

String getId()
Returns:
the id of the changed document.

getRevision

String getRevision()
Returns:
the revision the document had at the time of change.

getRevisions

List<String> getRevisions()
Returns:
the collection of revisions, including conflicts
Since:
1.4.0

isDeleted

boolean isDeleted()
Returns:
true if the changed document has been deleted.

getDoc

String getDoc()
If the feed has been setup to include docs, it will be available through this accessor.

Returns:

getDocAsNode

com.fasterxml.jackson.databind.JsonNode getDocAsNode()
If the feed has been setup to include docs, it will be available through this accessor.

Returns:


Copyright © 2017. All rights reserved.