Package

razie

db

Permalink

package db

Visibility
  1. Public
  2. All

Type Members

  1. class REntity[T <: AnyRef { def _id: org.bson.types.ObjectId }] extends AnyRef

    Permalink

    base class for entities - provides most common DB ops automatically

    base class for entities - provides most common DB ops automatically

    case class T(a,b) extends REntity[T] new T (a,b).create

  2. class REntityNoAudit[T <: AnyRef { def _id: org.bson.types.ObjectId }] extends REntity[T]

    Permalink

    entities that don't need auditing

  3. class RTable extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  4. abstract class SI[T >: Null <: AnyRef] extends AnyRef

    Permalink

    SingletonInstance - temp model for pre-configured singleton instances

    SingletonInstance - temp model for pre-configured singleton instances

    todo use some injection library of some kind

    Your final singletons extend this, such as RMongo extends SI[xxx]

    Singletons are initialized by someone on startup (i.e. injection)

  5. class Txn extends AnyRef

    Permalink

    playing with "transactions" i.e.

    playing with "transactions" i.e. a set of related db ops

    they are audited and timed in the log automatically

    otherwise, this is not really useful right now, other than allowing me to organize the code

  6. abstract class UpgradeDb extends AnyRef

    Permalink

    derive from here and list in upgrades above

  7. case class WikiTrash(table: String, entry: com.mongodb.casbah.Imports.DBObject, by: String, txnId: String, date: DateTime = DateTime.now, _id: ObjectId = new ObjectId()) extends Product with Serializable

    Permalink

    wiki entries are trashed when deleted - a copy of each older version when udpated or deleted

    wiki entries are trashed when deleted - a copy of each older version when udpated or deleted

    todo some ways to recover them

    Annotations
    @RTable()

Value Members

  1. object RCount

    Permalink
  2. object RCreate

    Permalink

    create a record

  3. object RDelete

    Permalink

    delete a record

  4. object RMany

    Permalink
  5. object RMongo extends SI[Auditor] with Logging

    Permalink
  6. object ROne

    Permalink
  7. object RUpdate

    Permalink

    update a record

  8. object RazMongo extends SI[MongoDB]

    Permalink

    represents a mongo db instance

    represents a mongo db instance

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

  9. object dbop extends Logging

    Permalink

    wrap all db operation in this to get logging, timing and stats

  10. object tx

    Permalink

    main helper for "transactions"

    main helper for "transactions"

    the only use right now is as a marker in the code, for related sets of DB udpates

    since Mongo doens't do transactions, that's all this is for now

Ungrouped