public class AtomicIterateUpdate extends Object implements DocUpdater
| Constructor and Description |
|---|
AtomicIterateUpdate(com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory,
com.redhat.lightblue.eval.FieldAccessRoleEvaluator roleEval,
Translator translator,
com.mongodb.DBObject mongoUpdateExpr,
com.redhat.lightblue.eval.Projector projector,
Set<com.redhat.lightblue.util.Path> updatedFields) |
| 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
|
public AtomicIterateUpdate(com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory,
com.redhat.lightblue.eval.FieldAccessRoleEvaluator roleEval,
Translator translator,
com.mongodb.DBObject mongoUpdateExpr,
com.redhat.lightblue.eval.Projector projector,
Set<com.redhat.lightblue.util.Path> updatedFields)
public 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)
DocUpdaterupdate in interface DocUpdaterctx - 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.