public class ForEachExpression extends ArrayUpdateExpression
{ $foreach : { path : update_query_expression, $update : foreach_update_expression } }
Constructor and Description |
---|
ForEachExpression(Path field,
QueryExpression query,
UpdateExpression update)
Constructs a foreach expression using the values
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ForEachExpression |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses a foreach expression from the given json object
|
Path |
getField()
The array field to operate on
|
QueryExpression |
getQuery()
The query to select array elements
|
UpdateExpression |
getUpdate()
The operation to be performed on the selected array elements
|
int |
hashCode() |
com.fasterxml.jackson.databind.JsonNode |
toJson() |
fromJson
getFactory, getSourceNode, toString
public ForEachExpression(Path field, QueryExpression query, UpdateExpression update)
public Path getField()
public QueryExpression getQuery()
public UpdateExpression getUpdate()
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson
in class JsonObject
public static ForEachExpression fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2014. All rights reserved.