org.ektorp.impl.changes
Class StdDocumentChange
java.lang.Object
org.ektorp.impl.changes.StdDocumentChange
- All Implemented Interfaces:
- DocumentChange
public class StdDocumentChange
- extends Object
- implements DocumentChange
- Author:
- henrik lundgren
StdDocumentChange
public StdDocumentChange(com.fasterxml.jackson.databind.JsonNode node)
getSequence
public int getSequence()
- Specified by:
getSequence in interface DocumentChange
- Returns:
- the database sequence number in which this change took place.
getStringSequence
public String getStringSequence()
- Specified by:
getStringSequence in interface DocumentChange
- Returns:
- the database string format sequence number in which this change took place (e.g. Cloudant).
getId
public String getId()
- Specified by:
getId in interface DocumentChange
- Returns:
- the id of the changed document.
isDeleted
public boolean isDeleted()
- Specified by:
isDeleted in interface DocumentChange
- Returns:
- true if the changed document has been deleted.
getDoc
public String getDoc()
- Description copied from interface:
DocumentChange
- If the feed has been setup to include docs, it will be available through this accessor.
- Specified by:
getDoc in interface DocumentChange
- Returns:
getDocAsNode
public com.fasterxml.jackson.databind.JsonNode getDocAsNode()
- Description copied from interface:
DocumentChange
- If the feed has been setup to include docs, it will be available through this accessor.
- Specified by:
getDocAsNode in interface DocumentChange
- Returns:
getRevision
public String getRevision()
- Specified by:
getRevision in interface DocumentChange
- Returns:
- the revision the document had at the time of change.
getRevisions
public List<String> getRevisions()
- Specified by:
getRevisions in interface DocumentChange
- Returns:
- the collection of revisions, including conflicts
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2017. All rights reserved.