Class/Object

com.mongodb.casbah

MongoConnection

Related Docs: object MongoConnection | package casbah

Permalink

class MongoConnection extends AnyRef

Wrapper class for the Mongo Connection object.

Annotations
@deprecated
Deprecated

(Since version 2.7) Please use MongoClient

Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoConnection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoConnection(underlying: Mongo)

    Permalink

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. def addOption(option: Int): Unit

    Permalink

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  5. def address: Imports.ServerAddress

    Permalink

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  6. def allAddress: Buffer[Imports.ServerAddress]

    Permalink
  7. def apply(dbName: String): MongoDB

    Permalink

    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.

  8. final def asInstanceOf[T0]: T0

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

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

    Permalink

    Closes all open connections.

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

  11. def connectPoint: String

    Permalink
  12. def databaseNames(): Buffer[String]

    Permalink

    Exceptions thrown

    MongoException on error

  13. def dbNames(): Buffer[String]

    Permalink

    Exceptions thrown

    MongoException on error

  14. def dropDatabase(dbName: String): Unit

    Permalink

    Drops the database if it exists.

    Drops the database if it exists.

    dbName

    (String) the name of the database to drop

    Exceptions thrown

    MongoException on error

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

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def getAddress: Imports.ServerAddress

    Permalink

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  19. def getAllAddress: Buffer[Imports.ServerAddress]

    Permalink
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getConnectPoint: String

    Permalink
  22. def getDB(dbName: String): MongoDB

    Permalink
  23. def getDatabaseNames(): Buffer[String]

    Permalink

    Exceptions thrown

    MongoException on error

  24. def getOptions: Int

    Permalink

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    com.mongodb.Mongo

  25. def getReadPreference: Imports.ReadPreference

    Permalink

    Gets the read preference for this database.

    Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

  26. def getWriteConcern: Imports.WriteConcern

    Permalink

    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 com.mongodb.WriteConcern for more info.

    See also

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

    WriteConcern

  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def options: Int

    Permalink

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    com.mongodb.Mongo

  33. def readPreference: Imports.ReadPreference

    Permalink

    Gets the read preference for this database.

    Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

  34. def readPreference_=(pref: Imports.ReadPreference): Unit

    Permalink

    Sets the read preference for this database.

    Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

    pref

    Read Preference to use

  35. def resetOptions(): Unit

    Permalink

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  36. def setReadPreference(pref: Imports.ReadPreference): Unit

    Permalink

    Sets the read preference for this database.

    Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

    pref

    Read Preference to use

  37. def setWriteConcern(concern: Imports.WriteConcern): Unit

    Permalink

    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 com.mongodb.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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. val underlying: Mongo

    Permalink
  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def writeConcern: Imports.WriteConcern

    Permalink

    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 com.mongodb.WriteConcern for more info.

    See also

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

    WriteConcern

  45. def writeConcern_=(concern: Imports.WriteConcern): Unit

    Permalink

    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 com.mongodb.WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    See also

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

    WriteConcern

Deprecated Value Members

  1. def slaveOk(): Unit

    Permalink

    Sets queries to be OK to run on slave nodes.

    Sets queries to be OK to run on slave nodes.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.3.0) Replaced with ReadPreference.SECONDARY

Inherited from AnyRef

Inherited from Any

Ungrouped