org.ektorp.impl.changes
Class StdDocumentChange

java.lang.Object
  extended by org.ektorp.impl.changes.StdDocumentChange
All Implemented Interfaces:
DocumentChange

public class StdDocumentChange
extends Object
implements DocumentChange

Author:
henrik lundgren

Constructor Summary
StdDocumentChange(org.codehaus.jackson.JsonNode node)
           
 
Method Summary
 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.
 String getId()
           
 String getRevision()
           
 int getSequence()
           
 boolean isDeleted()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StdDocumentChange

public StdDocumentChange(org.codehaus.jackson.JsonNode node)
Method Detail

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.