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(org.codehaus.jackson.JsonNode node)
getSequence
public int getSequence()
- Specified by:
getSequence
in interface DocumentChange
- Returns:
- the database sequence number in which this change took place.
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 org.codehaus.jackson.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.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.