Packages

trait Update extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Update
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def addEachToSet[A](fieldName: String, values: Seq[A]): Update

    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

    fieldName

    the non-null field name

    values

    the values

    returns

    the update

  2. abstract def addToSet[A](fieldName: String, value: A): 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

    fieldName

    the non-null field name

    value

    the value, which may be null

    returns

    the update

  3. abstract def bitwiseAnd(fieldName: String, value: Long): Update
  4. abstract def bitwiseAnd(fieldName: String, value: Int): 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.

    fieldName

    the field name

    value

    the value

    returns

    the update

  5. abstract def bitwiseOr(fieldName: String, value: Long): Update
  6. abstract def bitwiseOr(fieldName: String, value: Int): 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.

    fieldName

    the field name

    value

    the value

    returns

    the update

  7. abstract def bitwiseXor(fieldName: String, value: Long): Update
  8. abstract def bitwiseXor(fieldName: String, value: Int): 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.

    fieldName

    the field name

    value

    the value

    returns

    the update

  9. abstract def combinedWith(anotherUpdate: Update): Update

    Merges 2 sequences of update operations together.

    Merges 2 sequences of update operations together.

    anotherUpdate

    the update to be merged with

    returns

    the update

  10. abstract def currentDate(fieldName: String): 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.

    fieldName

    the non-null field name

    returns

    the update

  11. abstract def currentTimestamp(fieldName: String): 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.

    fieldName

    the non-null field name

    returns

    the update

  12. abstract def inc(fieldName: String, number: Number): 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.

    fieldName

    the non-null field name

    number

    the value

    returns

    the update

  13. abstract def max[A](fieldName: String, value: A): 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.

    fieldName

    the non-null field name

    value

    the value

    returns

    the update

  14. abstract def min[A](fieldName: String, value: A): 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.

    fieldName

    the non-null field name

    value

    the value

    returns

    the update

  15. abstract def mul(fieldName: String, number: Number): 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.

    fieldName

    the non-null field name

    number

    the non-null number

    returns

    the update

  16. abstract def popFirst(fieldName: String): 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.

    fieldName

    the non-null field name

    returns

    the update

  17. abstract def popLast(fieldName: String): 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.

    fieldName

    the non-null field name

    returns

    the update

  18. abstract def pull[A](fieldName: String, value: A): 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.

    fieldName

    the non-null field name

    value

    the value, which may be null

    returns

    the update

  19. abstract def pullAll[A](fieldName: String, values: Seq[A]): 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.

    fieldName

    the non-null field name

    values

    the values

    returns

    the update

  20. abstract def pullByFilter(filter: Filter): 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.

    filter

    the query filter

    returns

    the update

  21. abstract def push[A](fieldName: String, value: A): 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.

    fieldName

    the non-null field name

    value

    the value, which may be null

    returns

    the update

  22. abstract def pushEach[A](fieldName: String, values: Seq[A], options: PushOptions): 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.

    fieldName

    the non-null field name

    values

    the values

    options

    the non-null push options

    returns

    the update

  23. abstract def pushEach[A](fieldName: String, values: Seq[A]): 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.

    fieldName

    the non-null field name

    values

    the values

    returns

    the update

  24. abstract def rename(fieldName: String, newFieldName: String): Update

    Creates an update that renames a field.

    Creates an update that renames a field.

    fieldName

    the non-null field name

    newFieldName

    the non-null new field name

    returns

    the update

  25. abstract def set[A](fieldName: String, value: A): 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.

    fieldName

    the non-null field name

    value

    the value, which may be null

    returns

    the update

  26. abstract def setOnInsert[A](fieldName: String, value: A): 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.

    fieldName

    the non-null field name

    value

    the value, which may be null

    returns

    the update ee UpdateOptions#upsert(boolean)

  27. abstract def setOnInsert(value: Bson): Update

    Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.

    Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.

    value

    the value

    returns

    the update .0

    See also

    UpdateOptions#upsert(boolean)

  28. abstract def unset(fieldName: String): Update

    Creates an update that deletes the field with the given name.

    Creates an update that deletes the field with the given name.

    fieldName

    the non-null field name

    returns

    the update

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped