Class UpdateOperator
- java.lang.Object
-
- dev.morphia.query.experimental.updates.UpdateOperator
-
- Direct Known Subclasses:
AddToSetOperator
,CurrentDateOperator
,PopOperator
,PullOperator
,PushOperator
,SetEntityOperator
,SetOnInsertOperator
,UnsetOperator
public class UpdateOperator extends Object
Defines an update operator- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateOperator(String operator, String field, Object value)
protected
UpdateOperator(String operator, String field, List<?> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
field()
String
operator()
OperationTarget
toTarget(PathTarget pathTarget)
Creates the OperationTarget for serializationObject
value()
protected void
value(Object value)
-
-
-
Method Detail
-
field
public String field()
- Returns:
- the field
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
operator
public String operator()
- Returns:
- the operator
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
toTarget
public OperationTarget toTarget(PathTarget pathTarget)
Creates the OperationTarget for serialization- Parameters:
pathTarget
- the PathTarget- Returns:
- the OperationTarget
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
value
public Object value()
- Returns:
- the value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
value
protected void value(Object value)
-
-