Package dev.morphia.query.updates
Class UpdateOperator
- java.lang.Object
-
- dev.morphia.query.updates.UpdateOperator
-
- Direct Known Subclasses:
AddToSetOperator,CurrentDateOperator,PopOperator,PullOperator,PushOperator,SetEntityOperator,SetOnInsertOperator,UnsetOperator
@MorphiaInternal 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 protectedUpdateOperator(String operator, String field, Object value)protectedUpdateOperator(String operator, String field, List<?> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfield()Stringoperator()StringtoString()OperationTargettoTarget(dev.morphia.internal.PathTarget pathTarget)Creates the OperationTarget for serializationObjectvalue()protected voidvalue(Object value)
-
-
-
Method Detail
-
field
@MorphiaInternal 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
@MorphiaInternal 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
@MorphiaInternal public OperationTarget toTarget(dev.morphia.internal.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
@MorphiaInternal 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)
-
-