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 voidUpdateBase. add(UpdateOperator operator)Adds a new operator to this update operation.TLegacyQuery. modify(ModifyOptions options, UpdateOperator... updates)Deprecated.Modify<T>LegacyQuery. modify(UpdateOperator first, UpdateOperator... updates)Deprecated.TMorphiaQuery. modify(ModifyOptions options, UpdateOperator... updates)Modify<T>MorphiaQuery. modify(UpdateOperator first, UpdateOperator... updates)default TQuery. 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.com.mongodb.client.result.UpdateResultLegacyQuery. update(UpdateOptions options, UpdateOperator... updates)Deprecated.Update<T>MorphiaQuery. update(UpdateOperator first, UpdateOperator... updates)com.mongodb.client.result.UpdateResultMorphiaQuery. 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 com.mongodb.client.result.UpdateResultQuery. 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 classAddToSetOperatorDefines the $addToSet operatorclassCurrentDateOperatorDefines the $currentDate operatorclassPopOperatorDefines the $pop update operator.classPullOperatorDefines an operator for $pullclassPushOperatorDefines the $push update operatorclassSetEntityOperatorclassSetOnInsertOperatorclassUnsetOperatorMethods in dev.morphia.query.updates that return UpdateOperator Modifier and Type Method Description static UpdateOperatorUpdateOperators. and(String field, int value)The $bit operator performs a bitwise update of a field.static UpdateOperatorUpdateOperators. dec(String field)Decrements the value of the field by one.static UpdateOperatorUpdateOperators. dec(String field, Number value)Decrements the value of the field by the specified amount.static UpdateOperatorUpdateOperators. inc(String field)Increments the value of the field by one.static UpdateOperatorUpdateOperators. inc(String field, Number value)Increments the value of the field by the specified amount.static UpdateOperatorUpdateOperators. max(String field, Number value)Only updates the field if the specified value is greater than the existing field value.static UpdateOperatorUpdateOperators. max(String field, Temporal value)Only updates the field if the specified value is greater than the existing field value.static UpdateOperatorUpdateOperators. max(String field, Date value)Only updates the field if the specified value is greater than the existing field value.static UpdateOperatorUpdateOperators. min(String field, Number value)Only updates the field if the specified value is less than the existing field value.static UpdateOperatorUpdateOperators. min(String field, Temporal value)Only updates the field if the specified value is less than the existing field value.static UpdateOperatorUpdateOperators. min(String field, Date value)Only updates the field if the specified value is less than the existing field value.static UpdateOperatorUpdateOperators. mul(String field, Number value)Multiplies the value of the field by the specified amount.static UpdateOperatorUpdateOperators. or(String field, int value)The $bit operator performs a bitwise update of a field.static UpdateOperatorUpdateOperators. 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 UpdateOperatorUpdateOperators. 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 UpdateOperatorUpdateOperators. pullAll(String field, List<?> values)The $pullAll operator removes all instances of the specified values from an existing array.static UpdateOperatorUpdateOperators. rename(String field, String value)Renames a field.static UpdateOperatorUpdateOperators. set(Object value)The $set operator replaces the value of a field with the specified value.static UpdateOperatorUpdateOperators. set(String field, Object value)The $set operator replaces the value of a field with the specified value.static UpdateOperatorUpdateOperators. 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 UpdateOperatorUpdateOperators. unset(String field)The $unset operator deletes a particular field.static UpdateOperatorUpdateOperators. xor(String field, int value)The $bit operator performs a bitwise update of a field.
-