scalaz.stream.mongodb.bson

DBObjectOps

trait DBObjectOps[A <: BSONObject] extends Ops[A]

Operations on mongodb object. NOTE: Unfortunately mongodb object is mutable structure. So this actually "mutates" the mongodb instead of creating new instance every time.

A

Linear Supertypes
Ops[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DBObjectOps
  2. Ops
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def self: A

    Definition Classes
    Ops

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++=(o: BSONObject): BSONObject

    appends keys and values to BSBObject.

    appends keys and values to BSBObject. This mutates DBObject and will return mutated object *

  5. def ++=(m: Map[String, collectionSyntax.BSONAny]): BSONObject

    appends elements of given map to BSBObject.

    appends elements of given map to BSBObject. This mutates DBObject and will return mutated object *

  6. def +=[A](p: (String, A))(implicit arg0: BSONSerializable[A]): BSONObject

    Adds given key to object *

  7. def --=(k: TraversableOnce[String]): A

    Removes more keys from DBObject.

    Removes more keys from DBObject. This mutates DBObject and will return mutated object *

  8. def -=(k: String): BSONObject

    removes given key from DBObject.

    removes given key from DBObject. This mutates DBObject and will return mutated object *

  9. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  11. def _id: Option[ObjectId]

    Helper to get a _id of the object, this is type-unsafe and may fail with exception if _id is not ObjectId *

  12. def apply[A](k: String)(implicit arg0: BSONSerializable[A]): A

    Unsafe variant of getAs, will fail if the k does not exists and if k is different type than A *

  13. def as[A](k: String)(implicit arg0: BSONSerializable[A]): A

    Alias to apply

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def asMap: Map[String, Any]

    Converts DBObject to scala map.

    Converts DBObject to scala map. Returned map is immutable and will not reflect any changed in DBObject *

  16. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def getAs[A](k: String)(implicit arg0: BSONSerializable[A]): Option[A]

    Gets field of object, if of supplied type.

    Gets field of object, if of supplied type. This is type-unsafe and may fail with exception if k is not of A type *

  21. final def getClass(): Class[_]

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

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

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def tryAs[A](k: String)(implicit arg0: BSONSerializable[A]): Try[A]

    Safe variant of as *

  30. def tryGetAs[A](k: String)(implicit arg0: BSONSerializable[A]): Option[Try[A]]

    Safe variant of getAs *

  31. def try_id: Option[Try[ObjectId]]

    Safe variant of _id *

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ops[A]

Inherited from AnyRef

Inherited from Any

Ungrouped