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
 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()
           
 

Method Detail

getSequence

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

getId

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

getRevision

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

isDeleted

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

getDoc

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

Returns:

getDocAsNode

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

Returns:


Copyright © 2011. All Rights Reserved.