Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is already present, in which case it does nothing
the value type
the non-null field name
the values
the update
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
the value type
the non-null field name
the value
the update
Creates an update that performs a bitwise and between the given long value and the integral value of the field with the given name.
Creates an update that performs a bitwise and between the given long value and the integral value of the field with the given name.
the field name
the value
the update
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
the field name
the value
the update
Creates an update that performs a bitwise or between the given long value and the integral value of the field with the given name.
Creates an update that performs a bitwise or between the given long value and the integral value of the field with the given name.
the field name
the value
the update
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
the field name
the value
the update
Creates an update that performs a bitwise xor between the given long value and the integral value of the field with the given name.
Creates an update that performs a bitwise xor between the given long value and the integral value of the field with the given name.
the field name
the value
the update
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
the field name
the value
the update
Combine a list of updates into a single update.
Combine a list of updates into a single update.
the list of updates
a combined update
Creates an update that sets the value of the field to the current date as a BSON date.
Creates an update that sets the value of the field to the current date as a BSON date.
the non-null field name
the update
Creates an update that sets the value of the field to the current date as a BSON timestamp.
Creates an update that sets the value of the field to the current date as a BSON timestamp.
the non-null field name
the update
Creates an update that increments the value of the field with the given name by the given value.
Creates an update that increments the value of the field with the given name by the given value.
the non-null field name
the value
the update
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field.
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field.
the value type
the non-null field name
the value
the update
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the field.
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the field.
the value type
the non-null field name
the value
the update
Creates an update that multiplies the value of the field with the given name by the given number.
Creates an update that multiplies the value of the field with the given name by the given number.
the non-null field name
the non-null number
the update
Creates an update that pops the first element of an array that is the value of the field with the given name.
Creates an update that pops the first element of an array that is the value of the field with the given name.
the non-null field name
the update
Creates an update that pops the last element of an array that is the value of the field with the given name.
Creates an update that pops the last element of an array that is the value of the field with the given name.
the non-null field name
the update
Creates an update that removes all instances of the given value from the array value of the field with the given name.
Creates an update that removes all instances of the given value from the array value of the field with the given name.
the value type
the non-null field name
the value
the update
Creates an update that removes all instances of the given values from the array value of the field with the given name.
Creates an update that removes all instances of the given values from the array value of the field with the given name.
the value type
the non-null field name
the values
the update
Creates an update that removes from an array all elements that match the given filter.
Creates an update that removes from an array all elements that match the given filter.
the query filter
the update
Creates an update that adds the given value to the array value of the field with the given name.
Creates an update that adds the given value to the array value of the field with the given name.
the value type
the non-null field name
the value
the update
Creates an update that adds each of the given values to the array value of the field with the given name, applying the given options for positioning the pushed values, and then slicing and/or sorting the array.
Creates an update that adds each of the given values to the array value of the field with the given name, applying the given options for positioning the pushed values, and then slicing and/or sorting the array.
the value type
the non-null field name
the non-null push options
the values
the update
Creates an update that adds each of the given values to the array value of the field with the given name.
Creates an update that adds each of the given values to the array value of the field with the given name.
the value type
the non-null field name
the values
the update
Creates an update that renames a field.
Creates an update that renames a field.
the non-null field name
the non-null new field name
the update
Creates an update that sets the value of the field with the given name to the given value.
Creates an update that sets the value of the field with the given name to the given value.
the value type
the non-null field name
the value
the update
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that results in an insert of a document.
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that results in an insert of a document.
the value type
the non-null field name
the value
the update
UpdateOptions#upsert(boolean)
Creates an update that deletes the field with the given name.
Creates an update that deletes the field with the given name.
the non-null field name
the update
A factory for document updates. A convenient way to use this class is to statically import all of its methods, which allows usage like:
collection.updateOne(eq("x", 1), set("x", 2))
1.0