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)

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
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. implicit def aggregationOutputAsScala(output: mongodb.AggregationOutput): AnyRef { def asScala: com.mongodb.casbah.AggregationOutput }

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  15. 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

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

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

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

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

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. implicit def stringAsNamedCollectionMROutput(name: String): MapReduceStandardOutput

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped