com.mongodb.casbah

MongoConnection

class MongoConnection extends AnyRef

Wrapper class for the Mongo Connection object.

Source
MongoConnection.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MongoConnection
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoConnection (underlying: Mongo)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def addOption (option: Int): Unit

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  7. def address : ServerAddress

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  8. def allAddress : List[ServerAddress]

  9. def apply (dbName: String): MongoDB

    Apply method which proxies getDB, allowing you to call connInstance("dbName")

    Apply method which proxies getDB, allowing you to call connInstance("dbName")

    dbName

    (String) A string for the database name

    returns

    MongoDB A wrapped instance of a Mongo 'DB Class.

  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def close (): Unit

    Closes all open connections.

    Closes all open connections. NOTE: This connection can't be reused after closing.

  13. def connectPoint : String

  14. def databaseNames : Seq[String]

  15. def dbNames : Seq[String]

  16. def debugString : String

  17. def dropDatabase (dbName: String): Unit

    Drops the database if it exists.

    Drops the database if it exists.

    dbName

    (String) the name of the database to drop

  18. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def getAddress (): ServerAddress

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  22. def getAllAddress (): List[ServerAddress]

  23. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  24. def getConnectPoint (): String

  25. def getDB (dbName: String): MongoDB

  26. def getDatabaseNames (): Seq[String]

  27. def getOptions (): Int

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    ,

    com.mongodb.Mongo

  28. def getVersion (): String

  29. def getWriteConcern (): WriteConcern

    get the write concern for this database, which is used for writes to any collection in this database.

    get the write concern for this database, which is used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  30. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  31. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  32. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  33. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  35. def options : Int

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    ,

    com.mongodb.Mongo

  36. def resetOptions (): Unit

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  37. def setWriteConcern (concern: WriteConcern): Unit

    Set the write concern for this database.

    Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  38. def slaveOk (): Unit

    Sets queries to be OK to run on slave nodes.

  39. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  40. def toString (): String

    Definition Classes
    AnyRef → Any
  41. val underlying : Mongo

  42. def version : String

  43. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. def writeConcern : WriteConcern

    get the write concern for this database, which is used for writes to any collection in this database.

    get the write concern for this database, which is used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  47. def writeConcern_= (concern: WriteConcern): Unit

    Set the write concern for this database.

    Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

Inherited from AnyRef

Inherited from Any