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 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()
String
toString()
OperationTarget
toTarget(dev.morphia.internal.PathTarget pathTarget)
Creates the OperationTarget for serializationObject
value()
protected void
value(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)
-
-