Object

razie.db

RazMongo

Related Doc: package db

Permalink

object RazMongo extends SI[MongoDB]

represents a mongo db instance

we limit our usage to primitives that can be implemented by any rather stupid JSON document store.

Linear Supertypes
SI[MongoDB], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RazMongo
  2. SI
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class RazMongoTable extends RazTable

    Permalink

    wrap all access to the DB object

    wrap all access to the DB object

    if you want to use something else for storage, overwrite this class and the factory RazMongo.apply

  2. trait RazTable extends AnyRef

    Permalink

    wrap all access to the DB object - potentially use rk as a store

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 apply(table: String): RazMongoTable

    Permalink

    this is the main factory for db tables

    this is the main factory for db tables

    todo you need a way to overwrite this to use another persistance

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collectionNames: Set[String]

    Permalink
  8. def db: MongoDB

    Permalink
  9. def didUpgrade(name: String): Unit

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def findUpgrade(name: String): Option[DBObject]

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getInstance: MongoDB

    Permalink
    Definition Classes
    SI
  16. def hashCode(): Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def prepInstance(t: MongoDB): MongoDB

    Permalink

    overwrite this to prepare your instance i.e.

    overwrite this to prepare your instance i.e. initialize it

    Attributes
    protected
    Definition Classes
    SI
  22. def retry[T](i: Int)(f: ⇒ T): T

    Permalink

    generic retry of idempotent operations (find/read)

    generic retry of idempotent operations (find/read)

    T

    whatever return type of f

    i

    how many times to retry

    f

    the function to retry

  23. def setInstance(adb: MongoDB): Unit

    Permalink

    set the instance to use

    set the instance to use

    Definition Classes
    SI
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def upgradeMaybe(name: String, prereq: Array[String])(body: ⇒ Unit): Unit

    Permalink
  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withDb[B](d: MongoCollection, reason: String = "-")(f: (MongoCollection) ⇒ B): B

    Permalink

    important during the upgrades themselves - you can't recursively use db

Inherited from SI[MongoDB]

Inherited from AnyRef

Inherited from Any

Ungrouped