Uses of Class
dev.morphia.query.updates.UpdateOperator
-
Packages that use UpdateOperator Package Description dev.morphia.query dev.morphia.query.updates -
-
Uses of UpdateOperator in dev.morphia.query
Methods in dev.morphia.query that return types with arguments of type UpdateOperator Modifier and Type Method Description protected List<UpdateOperator>
UpdateBase. getUpdates()
Methods in dev.morphia.query with parameters of type UpdateOperator Modifier and Type Method Description void
UpdateBase. add(UpdateOperator operator)
Adds a new operator to this update operation.T
LegacyQuery. modify(ModifyOptions options, UpdateOperator... updates)
Deprecated.Modify<T>
LegacyQuery. modify(UpdateOperator first, UpdateOperator... updates)
Deprecated.T
MorphiaQuery. modify(ModifyOptions options, UpdateOperator... updates)
Modify<T>
MorphiaQuery. modify(UpdateOperator first, UpdateOperator... updates)
default T
Query. modify(ModifyOptions options, UpdateOperator... updates)
Create a modify operation based on this queryModify<T>
Query. modify(UpdateOperator first, UpdateOperator... updates)
Deprecated, for removal: This API element is subject to removal in a future version.considerQuery.modify(ModifyOptions, UpdateOperator...)
instead.Update<T>
LegacyQuery. update(UpdateOperator first, UpdateOperator... updates)
Deprecated.UpdateResult
LegacyQuery. update(UpdateOptions options, UpdateOperator... updates)
Deprecated.Update<T>
MorphiaQuery. update(UpdateOperator first, UpdateOperator... updates)
UpdateResult
MorphiaQuery. update(UpdateOptions options, UpdateOperator... updates)
Update<T>
Query. update(UpdateOperator first, UpdateOperator... updates)
Deprecated, for removal: This API element is subject to removal in a future version.useQuery.update(UpdateOptions, UpdateOperator...)
instead.default UpdateResult
Query. update(UpdateOptions options, UpdateOperator... updates)
Creates an update operation based on this queryMethod parameters in dev.morphia.query with type arguments of type UpdateOperator Modifier and Type Method Description Update<T>
LegacyQuery. update(List<UpdateOperator> updates)
Deprecated.Update<T>
MorphiaQuery. update(List<UpdateOperator> updates)
Deprecated.default Update<T>
Query. update(List<UpdateOperator> updates)
Deprecated, for removal: This API element is subject to removal in a future version.useQuery.update(UpdateOperator, UpdateOperator...)
instead -
Uses of UpdateOperator in dev.morphia.query.updates
Subclasses of UpdateOperator in dev.morphia.query.updates Modifier and Type Class Description class
AddToSetOperator
Defines the $addToSet operatorclass
CurrentDateOperator
Defines the $currentDate operatorclass
PopOperator
Defines the $pop update operator.class
PullOperator
Defines an operator for $pullclass
PushOperator
Defines the $push update operatorclass
SetEntityOperator
class
SetOnInsertOperator
class
UnsetOperator
Methods in dev.morphia.query.updates that return UpdateOperator Modifier and Type Method Description static UpdateOperator
UpdateOperators. and(String field, int value)
The $bit operator performs a bitwise update of a field.static UpdateOperator
UpdateOperators. dec(String field)
Decrements the value of the field by one.static UpdateOperator
UpdateOperators. dec(String field, Number value)
Decrements the value of the field by the specified amount.static UpdateOperator
UpdateOperators. inc(String field)
Increments the value of the field by one.static UpdateOperator
UpdateOperators. inc(String field, Number value)
Increments the value of the field by the specified amount.static UpdateOperator
UpdateOperators. max(String field, Number value)
Only updates the field if the specified value is greater than the existing field value.static UpdateOperator
UpdateOperators. max(String field, Temporal value)
Only updates the field if the specified value is greater than the existing field value.static UpdateOperator
UpdateOperators. max(String field, Date value)
Only updates the field if the specified value is greater than the existing field value.static UpdateOperator
UpdateOperators. min(String field, Number value)
Only updates the field if the specified value is less than the existing field value.static UpdateOperator
UpdateOperators. min(String field, Temporal value)
Only updates the field if the specified value is less than the existing field value.static UpdateOperator
UpdateOperators. min(String field, Date value)
Only updates the field if the specified value is less than the existing field value.static UpdateOperator
UpdateOperators. mul(String field, Number value)
Multiplies the value of the field by the specified amount.static UpdateOperator
UpdateOperators. or(String field, int value)
The $bit operator performs a bitwise update of a field.static UpdateOperator
UpdateOperators. pull(String field, Filter filter)
The $pull operator removes from an existing array all instances of a value or values that match a specified condition.static UpdateOperator
UpdateOperators. pull(String field, Object value)
The $pull operator removes from an existing array all instances of a value or values that match a specified condition.static UpdateOperator
UpdateOperators. pullAll(String field, List<?> values)
The $pullAll operator removes all instances of the specified values from an existing array.static UpdateOperator
UpdateOperators. rename(String field, String value)
Renames a field.static UpdateOperator
UpdateOperators. set(Object value)
The $set operator replaces the value of a field with the specified value.static UpdateOperator
UpdateOperators. set(String field, Object value)
The $set operator replaces the value of a field with the specified value.static UpdateOperator
UpdateOperators. setOnInsert(Map<String,Object> values)
If an update operation with upsert: true results in an insert of a document, then $setOnInsert assigns the specified values to the fields in the document.static UpdateOperator
UpdateOperators. unset(String field)
The $unset operator deletes a particular field.static UpdateOperator
UpdateOperators. xor(String field, int value)
The $bit operator performs a bitwise update of a field.
-