Trait

com.mongodb.casbah.query.dsl

AddToSetOp

Related Doc: package dsl

Permalink

trait AddToSetOp extends BarewordQueryOperator

Trait to provide the $addToSet (addToSet) method as a bareword operator..

Targets an RValue of (String, Any)* to be converted to a DBObject

Can also combined with the $each operator for adding many values:

scala> $addToSet ("foo") $each (5, 10, 15, "20"))
res1: com.mongodb.casbah.commons.Imports.DBObject = { "$addToSet" : { "foo" : { "$each" : [ 5 , 10 , 15 , "20"]

}}}

See also

http://www.mongodb.org/display/DOCS/Updating#Updating-%24addToSet

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AddToSetOp
  2. BarewordQueryOperator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def $addToSet(field: String): AnyRef { def $each[A](target: A*)(implicit evidence$7: com.mongodb.casbah.query.Imports.AsQueryParam[A]): com.mongodb.casbah.query.Imports.DBObject }

    Permalink
  4. def $addToSet[A](fields: (String, A)*): Imports.DBObject

    Permalink
  5. def $addToSet[T](arg: T)(implicit arg0: (T) ⇒ Imports.DBObject): Imports.DBObject

    Permalink
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def apply[A](oper: String)(fields: Seq[(String, A)]): Imports.DBObject

    Permalink
    Definition Classes
    BarewordQueryOperator
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BarewordQueryOperator

Inherited from AnyRef

Inherited from Any

Ungrouped