Package

com.mongodb

casbah

Permalink

package casbah

Visibility
  1. Public
  2. All

Type Members

  1. case class AggregationOutput(underlying: mongodb.AggregationOutput) extends Product with Serializable

    Permalink

    Wrapper object for AggregationOutput

    Wrapper object for AggregationOutput

    Since

    2.5

  2. trait BaseImports extends AnyRef

    Permalink
    Annotations
    @SuppressWarnings()
  3. case class BulkWriteException(message: String, cause: Throwable, underlying: mongodb.BulkWriteException) extends Exception with Product with Serializable

    Permalink
  4. case class BulkWriteOperation(underlying: mongodb.BulkWriteOperation) extends Product with Serializable

    Permalink

    A builder for a bulk write operation.

    A builder for a bulk write operation.

    Since

    2.7

  5. case class BulkWriteResult(underlying: mongodb.BulkWriteResult) extends Product with Serializable

    Permalink
  6. case class Cursor(underlying: mongodb.Cursor) extends Iterator[casbah.Imports.DBObject] with Product with Serializable

    Permalink

    A wrapper for the new com.mongodb.Cursor - which is used when returning a cursor from the aggregation framework.

    A wrapper for the new com.mongodb.Cursor - which is used when returning a cursor from the aggregation framework.

    underlying

    (com.mongodb.Cursor)

    Version

    2.7

  7. sealed class CursorExplanation extends casbah.Imports.MongoDBObject

    Permalink

    Version

    1.0, 12/15/10

    Since

    2.0

    See also

    http://dochub.mongodb.org/core/explain

  8. trait Implicits extends AnyRef

    Permalink

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

    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)

  9. trait Imports extends BaseImports with TypeImports with Implicits

    Permalink
  10. class MongoClient extends AnyRef

    Permalink

    Wrapper class for the MongoClient object.

  11. case class MongoClientURI(underlying: mongodb.MongoClientURI) extends Product with Serializable

    Permalink

    Create a new MongoURI with a URI String e.g.:

    Create a new MongoURI with a URI String e.g.:

    • mongodb://localhost
    • mongodb://fred:foobar@localhost/
    • mongodb://server1,server2,server3

    See http://docs.mongodb.org/manual/reference/connection-string/

    Since

    2.5

  12. class MongoCollection extends MongoCollectionBase with Iterable[casbah.commons.TypeImports.DBObject]

    Permalink

    Concrete collection implementation expecting standard DBObject operation This is the version of MongoCollectionBase you should expect to use in most cases.

    Concrete collection implementation expecting standard DBObject operation This is the version of MongoCollectionBase you should expect to use in most cases.

    Version

    2.0, 12/23/10

    Since

    1.0

  13. trait MongoCollectionBase extends Logging

    Permalink

    Scala wrapper for Mongo DBCollections, including ones which return custom DBObject subclasses via setObjectClass and the like.

    Scala wrapper for Mongo DBCollections, including ones which return custom DBObject subclasses via setObjectClass and the like. Provides any non-parameterized methods and the basic structure. Requires an underlying object of a DBCollection.

    This is a rewrite of the Casbah 1.0 approach which was rather naive and unecessarily complex.... formerly was MongoCollectionWrapper

    Version

    2.0, 12/23/10

    Since

    1.0

  14. class MongoCursor extends MongoCursorBase with Iterator[casbah.Imports.DBObject]

    Permalink

    Concrete cursor implementation expecting standard DBObject operation This is the version of MongoCursorBase you should expect to use in most cases.

    Concrete cursor implementation expecting standard DBObject operation This is the version of MongoCursorBase you should expect to use in most cases.

    Version

    2.0, 12/23/10

    Since

    1.0

  15. trait MongoCursorBase extends Logging

    Permalink

    Scala wrapper for Mongo DBCursors, including ones which return custom DBObject subclasses.

    Scala wrapper for Mongo DBCursors, including ones which return custom DBObject subclasses.

    This is a rewrite of the Casbah 1.0 approach which was rather naive and unnecessarily complex.... formerly was MongoCursorWrapper

    Version

    2.0, 12/23/10

    Since

    2.0

  16. class MongoDB extends AnyRef

    Permalink

    Wrapper for the Mongo DB object providing scala-friendly functionality.

    Wrapper for the Mongo DB object providing scala-friendly functionality.

    Since

    1.0

    See also

    com.mongodb.DB

  17. class MongoGenericTypedCollection[A <: casbah.commons.TypeImports.DBObject] extends MongoTypedCollection

    Permalink
  18. class MongoGenericTypedCursor[A <: casbah.Imports.DBObject] extends MongoCursorBase

    Permalink

    Concrete cursor implementation for typed Cursor operations via Collection.setObjectClass This is a special case cursor for typed operations.

    Concrete cursor implementation for typed Cursor operations via Collection.setObjectClass This is a special case cursor for typed operations.

    A

    A Subclass of DBObject

    Version

    2.0, 12/23/10

    Since

    1.0

  19. trait MongoTypedCollection extends MongoCollectionBase

    Permalink

    Concrete collection implementation for typed Cursor operations via Collection.setObjectClass et al This is a special case collection for typed operations

    Concrete collection implementation for typed Cursor operations via Collection.setObjectClass et al This is a special case collection for typed operations

    Version

    2.0, 12/23/10

    Since

    1.0

  20. case class ParallelScanOptions(numCursors: Int, batchSize: Int, readPreference: Option[Imports.ReadPreference] = None) extends Product with Serializable

    Permalink

    The options to use for a parallel collection scan.

    The options to use for a parallel collection scan.

    numCursors

    The number of cursors to return, must be greater than 0

    batchSize

    The cursor batch size, must be greater than 0 and less than 10001

    readPreference

    The optional read preference.

    Since

    2.7

    See also

    com.monogdb.ParallelScanOptions

  21. trait TypeImports extends AnyRef

    Permalink
  22. class MongoConnection extends AnyRef

    Permalink

    Wrapper class for the Mongo Connection object.

    Wrapper class for the Mongo Connection object.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7) Please use MongoClient

  23. class MongoURI extends AnyRef

    Permalink

    Create a new MongoURI with a URI String e.g.:

    Create a new MongoURI with a URI String e.g.:

    • mongodb://localhost
    • mongodb://fred:foobar@localhost/
    • mongodb://server1,server2,server3

    See http://www.mongodb.org/display/DOCS/Connections

    Annotations
    @deprecated @SuppressWarnings()
    Deprecated

    (Since version 2.8) Please use MongoClient and MongoClientURI

    Since

    2.0

Value Members

  1. object AggregationOptions

    Permalink

    Helper object for com.mongodb.AggregationOptions

    Helper object for com.mongodb.AggregationOptions

    Since

    2.7

  2. object BaseImports extends BaseImports with casbah.commons.BaseImports with casbah.query.BaseImports

    Permalink
  3. object Implicits extends Implicits with casbah.commons.Implicits with casbah.query.Implicits

    Permalink
  4. object Imports extends Imports with casbah.commons.Imports with casbah.query.Imports with FluidQueryBarewordOps

    Permalink
  5. object MongoClient

    Permalink

    Wrapper object for MongoClient connections, providing the static methods the Java driver gives.

    Wrapper object for MongoClient connections, providing the static methods the Java driver gives. Apply methods are called as MongoClient(<params>)

    Since

    2.5

  6. object MongoClientOptions

    Permalink

    Helper class for creating MongoClientOptions instances

    Helper class for creating MongoClientOptions instances

    Since

    2.5

    See also

    com.mongodb.MongoClientOptions

  7. object MongoClientURI extends Serializable

    Permalink

    MongoClientURI - representing the options to connect to MongoDB

    MongoClientURI - representing the options to connect to MongoDB

    Since

    2.0

  8. object MongoCollection extends Logging

    Permalink

    Helper object for some static methods

  9. object MongoCredential

    Permalink

    Helper class for creating MongoCredential instances

    Helper class for creating MongoCredential instances

    Since

    2.6

    See also

    com.mongodb.MongoCredential

  10. object MongoCursor extends Logging

    Permalink
  11. object MongoDB

    Permalink

    Wrapper for the Mongo DB object providing scala-friendly functionality.

    Wrapper for the Mongo DB object providing scala-friendly functionality.

    Since

    2.0

    See also

    com.mongodb.DB

  12. object MongoDBAddress

    Permalink

    Since

    1.0.1

  13. object ParallelScanOptions extends Serializable

    Permalink

    The options to use for a parallel collection scan.

    The options to use for a parallel collection scan.

    Since

    2.7

    See also

    com.mongodb.ParallelScanOptions

  14. object ReadPreference

    Permalink

    Helper class for creating ReadPreference instances

    Helper class for creating ReadPreference instances

    Since

    2.2

    See also

    JReadPreference

  15. object TypeImports extends TypeImports with casbah.commons.TypeImports with casbah.query.TypeImports

    Permalink
  16. object WriteConcern

    Permalink

    Helper class for creating WriteConcern instances

    Helper class for creating WriteConcern instances

    Since

    2.0

    See also

    JWriteConcern

  17. package map_reduce

    Permalink
  18. package util

    Permalink

Deprecated Value Members

  1. object MongoConnection

    Permalink

    Wrapper object for Mongo Connections, providing the static methods the Java driver gives.

    Wrapper object for Mongo Connections, providing the static methods the Java driver gives. Apply methods are called as MongoConnection(<params>)

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7) Please use MongoClient

  2. object MongoOptions

    Permalink

    Helper class for creating MongoOptions instances

    Helper class for creating MongoOptions instances

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7) Please use MongoClient and MongoClientOptions

    Since

    2.0

    See also

    com.mongodb.MongoOptions

  3. object MongoURI

    Permalink

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7) Please use MongoClient and MongoClientURI

    Since

    2.0

Ungrouped