public class SetExpression extends PrimitiveUpdateExpression
primitive_update_expression := { $set : { path : rvalue_expression , ...} } | { $unset : path } | { $unset :[ path, ... ] } { $add : { path : rvalue_expression, ... } }
Constructor and Description |
---|
SetExpression(UpdateOperator op,
FieldAndRValue... l)
Constructs a set expression using the given list
|
SetExpression(UpdateOperator op,
List<FieldAndRValue> list)
Constructs a set expression using the given list
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static SetExpression |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses a set expression using the given json object
|
List<FieldAndRValue> |
getFields()
Returns the fields to be updated, and their new values
|
UpdateOperator |
getOp()
Returns the update operator
|
int |
hashCode() |
com.fasterxml.jackson.databind.JsonNode |
toJson() |
fromJson
getFactory, getSourceNode, toString
public SetExpression(UpdateOperator op, List<FieldAndRValue> list)
public SetExpression(UpdateOperator op, FieldAndRValue... l)
public List<FieldAndRValue> getFields()
public UpdateOperator getOp()
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson
in class JsonObject
public static SetExpression fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2014. All rights reserved.