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() |
fromJsongetFactory, getSourceNode, toStringpublic 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 JsonObjectpublic static ForEachExpression fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2015. All rights reserved.