com.mongodb.casbah

MongoConnection

object MongoConnection extends AnyRef

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

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

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 apply (host: String, port: Int): MongoConnection

    Connects to a (single) mongodb node

    Connects to a (single) mongodb node

    host

    (String) server to connect to

    port

    (Int) the port on which the database is running

  7. def apply (host: String): MongoConnection

    Connects to a (single) mongodb node (default port)

    Connects to a (single) mongodb node (default port)

    host

    (String) server to connect to

  8. def apply (left: ServerAddress, right: ServerAddress, options: MongoOptions): MongoConnection

    Creates a Mongo connection in paired mode.

    Creates a Mongo connection in paired mode. This will also work for a replica set and will find all the members (the master will be used by default)

    left

    (ServerAddress) the left side of the pair

    right

    (ServerAddress) The right side of the pair

    options

    (MongoOptions) the MongoDB Options for the connection

    See also

    MongoOptions

    ,

    MongoDBAddress

    ,

    ServerAddress

  9. def apply (left: ServerAddress, right: ServerAddress): MongoConnection

    Creates a Mongo connection in paired mode.

    Creates a Mongo connection in paired mode. This will also work for a replica set and will find all the members (the master will be used by default)

    left

    (ServerAddress) the left side of the pair

    right

    (ServerAddress) The right side of the pair

    See also

    MongoDBAddress

    ,

    ServerAddress

  10. def apply (addr: ServerAddress, options: MongoOptions): MongoConnection

    Connects to a (single) mongodb node.

    Connects to a (single) mongodb node.

    addr

    (ServerAddress) the DatabaseAddress

    options

    (MongoOptions) DB Options

    See also

    MongoOptions

    ,

    MongoDBAddress

    ,

    ServerAddress

  11. def apply (addr: ServerAddress): MongoConnection

    Connects to a (single) mongodb node.

    Connects to a (single) mongodb node.

    addr

    (ServerAddress) the DatabaseAddress

    See also

    MongoDBAddress

    ,

    ServerAddress

  12. def apply (uri: MongoURI): MongoConnection

    Connect via a com.

    Connect via a com.mongodb.MongoURI

    uri

    (com.mongodb.MongoURI)

  13. def apply (uri: MongoURI): MongoConnection

    Connect via a MongoURI

    Connect via a MongoURI

    uri

    (MongoURI)

  14. def apply (replicaSetSeeds: List[ServerAddress], options: MongoOptions): MongoConnection

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoOptions object

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoOptions object

    replicaSetSeeds

    (List[ServerAddress]) The servers to connect to

    See also

    MongoDBAddress

    ,

    ServerAddress

  15. def apply (replicaSetSeeds: List[ServerAddress]): MongoConnection

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default)

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default)

    replicaSetSeeds

    (List[ServerAddress]) The servers to connect to

    See also

    MongoDBAddress

    ,

    ServerAddress

  16. def apply (): MongoConnection

    Default connection method - connects to default host & port

    Default connection method - connects to default host & port

  17. def asInstanceOf [T0] : T0

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def connect (addr: DBAddress): MongoDB

  20. def eq (arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  24. def hashCode (): Int

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  29. def synchronized [T0] (arg0: ⇒ T0): T0

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

    Definition Classes
    AnyRef → Any
  31. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any