Packages

class MongoDb extends MongoDbImpl

Source
MongoDb.scala
Linear Supertypes
MongoDbImpl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoDb
  2. MongoDbImpl
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MongoDb(client: MongoClient, currentDb: MongoDatabase)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def createCollection(db: String, collection: String): Task[Unit]

    Creates a new collection in the specified database.

    Creates a new collection in the specified database.

    collection

    the name for the new collection to create

    returns

    a unit that signals on completion.

  7. def createCollection(collectionName: String): Task[Unit]

    Creates a new collection with the given name.

    Creates a new collection with the given name.

    collectionName

    the name for the new collection to create

    returns

    a unit that signals on completion.

  8. def createCollection(db: MongoDatabase, collectionName: String): Task[Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  9. def dropCollection(db: String, collection: String): Task[Unit]

    Drops a collection from the specified database.

    Drops a collection from the specified database.

    collection

    the name of the collection to drop

    returns

    a unit that signals on completion

  10. def dropCollection(collection: String): Task[Unit]

    Drops a collection from the current database.

    Drops a collection from the current database.

    collection

    the name of the collection to drop

    returns

    a unit that signals on completion

  11. def dropCollection(db: MongoDatabase, collectionName: String): Task[Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  12. def dropDatabase(db: String): Task[Unit]

    Drops the specified database.

    Drops the specified database.

    returns

    a unit that signals on completion.

  13. def dropDatabase: Task[Unit]

    Drops the current database.

    Drops the current database.

    returns

    a unit that signals on completion.

  14. def dropDatabase(db: MongoDatabase): Task[Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def existsCollection(db: String, collection: String): Task[Boolean]

    Check whether a collection exists or not.

    Check whether a collection exists or not.

    collection

    the name of the collection

    returns

    a boolean Task indicating whether the collection exists or not.

  18. def existsCollection(collection: String): Task[Boolean]

    Check whether a collection in the current db exists or not.

    Check whether a collection in the current db exists or not.

    collection

    the name of the collection

    returns

    a boolean Task indicating whether the collection exists or not.

  19. def existsCollection(db: MongoDatabase, collectionName: String): Task[Boolean]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  20. def existsDatabase(dbName: String): Task[Boolean]

    Checks whether a database exists or not.

    Checks whether a database exists or not.

    dbName

    the name of the database

    returns

    a boolean Task indicating whether the database exists or not.

  21. def existsDatabase(client: MongoClient, dbName: String): Task[Boolean]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def getClusterDescription: Task[ClusterDescription]

    Gets the current cluster description.

    Gets the current cluster description. The method may return a ClusterDescription whose clusterType is unknown and whose com.mongodb.connection.ServerDescriptions are all in the connecting state.

    If the application requires notifications after the driver has connected to a member of the cluster, it should register a ClusterListener via the ClusterSettings in com.mongodb.MongoClientSettings. the current cluster description

  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def listCollections(db: String): Observable[String]

    Lists all the collections the given database.

    Lists all the collections the given database.

    returns

    an Observable that emits the names of all the existing collections.

  28. def listCollections: Observable[String]

    Lists all the collections the current database.

    Lists all the collections the current database.

    returns

    an Observable that emits the names of all the existing collections.

  29. def listCollections(db: MongoDatabase): Observable[String]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  30. def listDatabases: Observable[String]

    Get the list of the all database names.

    Get the list of the all database names.

    returns

    an Observable that emits the names of all the existing databases.

  31. def listDatabases(client: MongoClient): Observable[String]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def renameCollection(oldCollection: String, newCollection: String): Task[Boolean]

    Rename the collection with oldCollectionName to the newCollectionName.

    Rename the collection with oldCollectionName to the newCollectionName.

    oldCollection

    the current (old) name of the collection

    newCollection

    the name (new) which the collection will be renamed to

    returns

    a boolean Task indicating whether the collection was successfully renamed or not.

  36. def renameCollection(db: MongoDatabase, oldCollectionName: String, newCollectionName: String): Task[Boolean]
    Attributes
    protected[this]
    Definition Classes
    MongoDbImpl
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MongoDbImpl

Inherited from AnyRef

Inherited from Any

Ungrouped