Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jcouchdb.db;

Allows java-side interception of couchdb operations on documents

Author(s):
fforw at gmx dot de
 
 public interface DatabaseEventHandler
 {
    
Called when a document is about to be created. Any exception thrown will prevent creation.

Parameters:
db database
document Document
Throws:
java.lang.Exception
    void creatingDocument(Database dbObject documentthrows Exception;

    
Called when after a document is created.

Parameters:
db database
document Document
response response received from couchdb
    void createdDocument(Database dbObject documentResponse response);

    
Called when a document is about to be updated. Any exception thrown will prevent the update.

Parameters:
db database
document Document
Throws:
java.lang.Exception
    
    void updatingDocument(Database dbObject documentthrows Exception;

    
Called when after a document is updated.

Parameters:
db database
document Document
response response received from couchdb
    void updatedDocument(Database dbObject documentResponse response);

    
Called when a document is about to be deleted. Any exception thrown will prevent the deletion.

Parameters:
db database
document Document
Throws:
java.lang.Exception
    
    void deletingDocument(Database dbString idString revthrows Exception;

    
Called when after a document is deleted.

Parameters:
db database
document Document
response response received from couchdb or null if the call was a bulk delete.
    void deletedDocument(Database dbString idString revResponse response);
New to GrepCode? Check out our FAQ X