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

Method Detail

getSequence

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

getId

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

getRevision

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

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.