Trait/Object

com.mongodb.casbah

Implicits

Related Docs: object Implicits | package casbah

Permalink

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
Type Hierarchy Learn more about scaladoc diagrams
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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Permalink
  5. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

    Permalink

    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 }

    Permalink

    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 }

    Permalink

    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 */ }

    Permalink

    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 }

    Permalink

    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

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped