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)
- Alphabetic
- By Inheritance
- Implicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def aggregationOutputAsScala(output: mongodb.AggregationOutput): AnyRef { def asScala: com.mongodb.casbah.AggregationOutput }
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
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
-
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
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- implicit def stringAsNamedCollectionMROutput(name: String): MapReduceStandardOutput
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )