org.ektorp.impl.changes
Class StdDocumentChange
java.lang.Object
org.ektorp.impl.changes.StdDocumentChange
- All Implemented Interfaces:
- DocumentChange
public class StdDocumentChange
- extends java.lang.Object
- implements DocumentChange
- Author:
- henrik lundgren
|
Method Summary |
java.lang.String |
getDoc()
If the feed has been setup to include docs, it will be available through this accessor. |
org.codehaus.jackson.JsonNode |
getDocAsNode()
If the feed has been setup to include docs, it will be available through this accessor. |
java.lang.String |
getId()
|
java.lang.String |
getRevision()
|
int |
getSequence()
|
boolean |
isDeleted()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.lang.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 java.lang.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 java.lang.String getRevision()
- Specified by:
getRevision in interface DocumentChange
- Returns:
- the revision the document had at the time of change.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011. All Rights Reserved.