Class

org.mongodb.scala

MongoDatabase

Related Doc: package scala

Permalink

case class MongoDatabase(wrapped: com.mongodb.async.client.MongoDatabase) extends Product with Serializable

The MongoDatabase representation.

wrapped

the underlying java MongoDatabase

Since

1.0

Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDatabase
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoDatabase(wrapped: com.mongodb.async.client.MongoDatabase)

    Permalink

    wrapped

    the underlying java MongoDatabase

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. lazy val codecRegistry: CodecRegistry

    Permalink

    Get the codec registry for the MongoDatabase.

    Get the codec registry for the MongoDatabase.

    returns

    the { @link org.bson.codecs.configuration.CodecRegistry}

  7. def createCollection(collectionName: String, options: CreateCollectionOptions): Observable[Completed]

    Permalink

    Create a new collection with the selected options

    Create a new collection with the selected options

    Create Command

    collectionName

    the name for the new collection to create

    options

    various options for creating the collection

    returns

    a Observable identifying when the collection has been created

  8. def createCollection(collectionName: String): Observable[Completed]

    Permalink

    Create a new collection with the given name.

    Create a new collection with the given name.

    Create Command

    collectionName

    the name for the new collection to create

    returns

    a Observable identifying when the collection has been created

  9. def drop(): Observable[Completed]

    Permalink

    Drops this database.

    Drops this database.

    Drop database

    returns

    a Observable identifying when the database has been dropped

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getCollection[TResult](collectionName: String)(implicit e: DefaultsTo[TResult, Document], ct: ClassTag[TResult]): MongoCollection[TResult]

    Permalink

    Gets a collection, with a specific default document class.

    Gets a collection, with a specific default document class.

    TResult

    the type of the class to use instead of Document.

    collectionName

    the name of the collection to return

    returns

    the collection

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def listCollectionNames(): Observable[String]

    Permalink

    Gets the names of all the collections in this database.

    Gets the names of all the collections in this database.

    returns

    a Observable with all the names of all the collections in this database

  16. def listCollections[TResult]()(implicit e: DefaultsTo[TResult, Document], ct: ClassTag[TResult]): ListCollectionsObservable[TResult]

    Permalink

    Finds all the collections in this database.

    Finds all the collections in this database.

    listCollections

    TResult

    the target document type of the iterable.

    returns

    the fluent list collections interface

  17. lazy val name: String

    Permalink

    Gets the name of the database.

    Gets the name of the database.

    returns

    the database name

  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. lazy val readPreference: ReadPreference

    Permalink

    Get the read preference for the MongoDatabase.

    Get the read preference for the MongoDatabase.

    returns

    the { @link com.mongodb.ReadPreference}

  22. def runCommand[TResult](command: Bson, readPreference: ReadPreference)(implicit e: DefaultsTo[TResult, Document], ct: ClassTag[TResult]): Observable[TResult]

    Permalink

    Executes command in the context of the current database.

    Executes command in the context of the current database.

    TResult

    the type of the class to use instead of Document.

    command

    the command to be run

    readPreference

    the ReadPreference to be used when executing the command

    returns

    a Observable containing the command result

  23. def runCommand[TResult](command: Bson)(implicit e: DefaultsTo[TResult, Document], ct: ClassTag[TResult]): Observable[TResult]

    Permalink

    Executes command in the context of the current database using the primary server.

    Executes command in the context of the current database using the primary server.

    TResult

    the type of the class to use instead of Document.

    command

    the command to be run

    returns

    a Observable containing the command result

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

    Permalink
    Definition Classes
    AnyRef
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withCodecRegistry(codecRegistry: CodecRegistry): MongoDatabase

    Permalink

    Create a new MongoDatabase instance with a different codec registry.

    Create a new MongoDatabase instance with a different codec registry.

    codecRegistry

    the new { @link org.bson.codecs.configuration.CodecRegistry} for the collection

    returns

    a new MongoDatabase instance with the different codec registry

  29. def withReadPreference(readPreference: ReadPreference): MongoDatabase

    Permalink

    Create a new MongoDatabase instance with a different read preference.

    Create a new MongoDatabase instance with a different read preference.

    readPreference

    the new { @link com.mongodb.ReadPreference} for the collection

    returns

    a new MongoDatabase instance with the different readPreference

  30. def withWriteConcern(writeConcern: WriteConcern): MongoDatabase

    Permalink

    Create a new MongoDatabase instance with a different write concern.

    Create a new MongoDatabase instance with a different write concern.

    writeConcern

    the new { @link com.mongodb.WriteConcern} for the collection

    returns

    a new MongoDatabase instance with the different writeConcern

  31. lazy val writeConcern: WriteConcern

    Permalink

    Get the write concern for the MongoDatabase.

    Get the write concern for the MongoDatabase.

    returns

    the { @link com.mongodb.WriteConcern}

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped