Object

net.liftweb.mongodb

MongoDB

Related Doc: package mongodb

Permalink

object MongoDB

Main Mongo object

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDB
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. def closeAll(): Unit

    Permalink

    Calls close on each MongoClient instance and clears the HashMap.

  7. def defineDb(name: ConnectionIdentifier, mngo: MongoClient, dbName: String): Unit

    Permalink

    Define a MongoClient db using a MongoClient instance.

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getDb(name: ConnectionIdentifier): Option[DB]

    Permalink

    Get a DB reference

  13. def hashCode(): Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def use[T](f: (DB) ⇒ T): T

    Permalink

    Executes function f with the mongo named name.

    Executes function f with the mongo named name. Uses the default ConnectionIdentifier

  21. def use[T](name: ConnectionIdentifier)(f: (DB) ⇒ T): T

    Permalink

    Executes function f with the mongo db named name.

    Executes function f with the mongo db named name.

  22. def useCollection[T](collectionName: String)(f: (DBCollection) ⇒ T): T

    Permalink

    Same as above except uses DefaultConnectionIdentifier

  23. def useCollection[T](name: ConnectionIdentifier, collectionName: String)(f: (DBCollection) ⇒ T): T

    Permalink

    Executes function f with the mongo named name and collection names collectionName.

    Executes function f with the mongo named name and collection names collectionName. Gets a collection for you.

  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def defineDbAuth(name: ConnectionIdentifier, mngo: MongoClient, dbName: String, username: String, password: String): Unit

    Permalink

    Define and authenticate a Mongo db using a MongoClient instance.

    Define and authenticate a Mongo db using a MongoClient instance.

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) Credentials are now passed in via MongoClient

  2. def useSession[T](f: (DB) ⇒ T): T

    Permalink

    Same as above except uses DefaultConnectionIdentifier

    Same as above except uses DefaultConnectionIdentifier

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) No longer needed. See mongo-java-drivers's JavaDocs for details

  3. def useSession[T](name: ConnectionIdentifier)(f: (DB) ⇒ T): T

    Permalink

    Executes function f with the mongo db named name.

    Executes function f with the mongo db named name. Uses the same socket for the entire function block. Allows multiple operations on the same thread/socket connection and the use of getLastError. See: http://docs.mongodb.org/ecosystem/drivers/java-concurrency/

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) No longer needed. See mongo-java-drivers's JavaDocs for details

Inherited from AnyRef

Inherited from Any

Ungrouped