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)

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

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. implicit def aggregationOutputAsScala(output: mongodb.AggregationOutput): AnyRef { def asScala: com.mongodb.casbah.AggregationOutput }
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. 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

  14. implicit def mongoCommandCursorAsScala(cursor: mongodb.Cursor): AnyRef { def asScala: com.mongodb.casbah.Cursor }

    Implicit extension methods for Mongo's Aggregation MongoCursor object.

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

    cursor

    A Cursor object to wrap

  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

  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

  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

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  21. implicit def stringAsNamedCollectionMROutput(name: String): MapReduceStandardOutput
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped