public interface StoreDelegate
| Modifier and Type | Method and Description |
|---|---|
void |
databaseStorageChanged(DocumentChange change)
Called whenever a revision is added to the database (but not for local docs or for purges.)
|
java.lang.String |
generateRevID(byte[] json,
boolean deleted,
java.lang.String prevRevID)
Generates a revision ID for a new revision.
|
boolean |
runFilter(ReplicationFilter filter,
java.util.Map<java.lang.String,java.lang.Object> filterParams,
RevisionInternal rev) |
void |
storageExitedTransaction(boolean committed)
Called whenever the outermost transaction completes.
|
void storageExitedTransaction(boolean committed)
committed - YES on commit, NO if the transaction was aborted.void databaseStorageChanged(DocumentChange change)
java.lang.String generateRevID(byte[] json,
boolean deleted,
java.lang.String prevRevID)
json - The canonical JSON of the revision (with metadata properties removed.)deleted - YES if this revision is a deletionprevRevID - The parent's revision ID, or nil if this is a new document.boolean runFilter(ReplicationFilter filter, java.util.Map<java.lang.String,java.lang.Object> filterParams, RevisionInternal rev)