com.mongodb.casbah

Implicits

trait Implicits extends AnyRef

Implicits object to expose implicit conversions to implementing classes which facilitate more Scala-like functionality in Mongo.

For classes of Mongo (The connection class), DB, DBCollection, and DBCursor, extension methods of asScala are added which will, when invoked, return a Scala-ified wrapper class to replace the Java-driver class it was called on.

These scala-ified wrappers do conversions to/from Java datatypes where necessary and will always return Scala types.

Additionally, Collection and Cursors can be called with asScalaTyped and a type (either an implicit or explicitly passed Manifest object is used to determine type) to return a Type optimized version of themselves. The type must be a subclass of DBObject, and it is up to YOU the programmer to determine that your underlying collection can be deserialized to objects of type A.

Type oriented Collections and Cursors will ALWAYS try to deserialize DBObjects to their type where appropriate (exceptions are things like group and mapReduce which return non-standard data and will be DBObjects)

Source
Implicits.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Implicits
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

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

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  12. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  14. implicit def mongoCollAsScala (coll: DBCollection): AnyRef { ... /* 2 definitions in type refinement */ }

    Implicit extension methods for Mongo's Collection object.

    Implicit extension methods for Mongo's Collection object. Capable of returning a Scala optimized wrapper object.

    coll

    A DBCollection object to wrap

    Attributes
    implicit
  15. implicit def mongoConnAsScala (conn: Mongo): AnyRef { def asScala: com.mongodb.casbah.MongoConnection }

    Implicit extension methods for Mongo's connection object.

    Implicit extension methods for Mongo's connection object. Capable of returning a Scala optimized wrapper object.

    conn

    A Mongo object to wrap

    Attributes
    implicit
  16. implicit def mongoCursorAsScala (cursor: DBCursor): AnyRef { ... /* 2 definitions in type refinement */ }

    Implicit extension methods for Mongo's DBCursor object.

    Implicit extension methods for Mongo's DBCursor object. Capable of returning a Scala optimized wrapper object.

    cursor

    A DBCursor object to wrap

    Attributes
    implicit
  17. implicit def mongoDBAsScala (db: DB): AnyRef { def asScala: com.mongodb.casbah.MongoDB }

    Implicit extension methods for Mongo's DB object.

    Implicit extension methods for Mongo's DB object. Capable of returning a Scala optimized wrapper object.

    db

    A DB object to wrap

    Attributes
    implicit
  18. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. implicit def stringAsNamedCollectionMROutput (name: String): MapReduceStandardOutput

    Attributes
    implicit
  22. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  23. def toString (): String

    Definition Classes
    AnyRef → Any
  24. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any