Packages

class Update extends Serializable with AsJava

Linear Supertypes
AsJava, AsJavaConverters, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Update
  2. AsJava
  3. AsJavaConverters
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Update()
  2. new Update(updates: List[Bson])

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. 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

  5. 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

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def asJava[K, V](m: Map[K, V]): ConcurrentMap[K, V]
    Definition Classes
    AsJavaConverters
  8. def asJava[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    AsJavaConverters
  9. def asJava[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    AsJavaConverters
  10. def asJava[A](s: Set[A]): Set[A]
    Definition Classes
    AsJavaConverters
  11. def asJava[A](s: Set[A]): Set[A]
    Definition Classes
    AsJavaConverters
  12. def asJava[A](s: Seq[A]): List[A]
    Definition Classes
    AsJavaConverters
  13. def asJava[A](s: Seq[A]): List[A]
    Definition Classes
    AsJavaConverters
  14. def asJava[A](b: Buffer[A]): List[A]
    Definition Classes
    AsJavaConverters
  15. def asJava[A](i: Iterable[A]): Iterable[A]
    Definition Classes
    AsJavaConverters
  16. def asJava[A](i: Iterator[A]): Iterator[A]
    Definition Classes
    AsJavaConverters
  17. def asJavaCollection[A](i: Iterable[A]): Collection[A]
    Definition Classes
    AsJavaConverters
  18. def asJavaDictionary[K, V](m: Map[K, V]): Dictionary[K, V]
    Definition Classes
    AsJavaConverters
  19. def asJavaEnumeration[A](i: Iterator[A]): Enumeration[A]
    Definition Classes
    AsJavaConverters
  20. def bitwiseAnd(fieldName: String, value: Long): Update
  21. 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

  22. def bitwiseOr(fieldName: String, value: Long): Update
  23. 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

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

  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  27. 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

  28. 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

  29. 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

  30. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def equals(other: Any): Boolean
    Definition Classes
    Update → AnyRef → Any
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  33. def hashCode(): Int
    Definition Classes
    Update → AnyRef → Any
  34. 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

  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. 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

  37. 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

  38. 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

  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  42. 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

  43. 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

  44. 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

  45. 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

  46. 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

  47. 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

  48. 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

  49. 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

  50. 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

  51. 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

  52. 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)

  53. 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)

  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def toString(): String
    Definition Classes
    Update → AnyRef → Any
  56. 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

  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. 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 AsJava

Inherited from AsJavaConverters

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped