public interface DocUpdater
| Modifier and Type | Method and Description |
|---|---|
void |
update(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.mongodb.DBCollection collection,
com.redhat.lightblue.metadata.EntityMetadata md,
com.redhat.lightblue.crud.CRUDUpdateResponse response,
com.mongodb.DBObject query)
Updates the documents in the resultset of a query
|
void update(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.mongodb.DBCollection collection,
com.redhat.lightblue.metadata.EntityMetadata md,
com.redhat.lightblue.crud.CRUDUpdateResponse response,
com.mongodb.DBObject query)
ctx - Operation contextcollection - The collection in which the documents will be updatedmd - Entity metadataresponse - Update responsequery - The query to search
It is expected that how the documents will be updated is to be passed in
the constructor. The implementation should run the query, update the
documents, compute the projections of the updated documents, and update
the operation context accordingly.1Copyright © 2014. All rights reserved.