Trait

net.liftweb.mongodb.record

MongoRecord

Related Doc: package record

Permalink

trait MongoRecord[MyType <: MongoRecord[MyType]] extends BsonRecord[MyType]

Self Type
MyType
Linear Supertypes
BsonRecord[MyType], Record[MyType], FieldContainer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoRecord
  2. BsonRecord
  3. Record
  4. FieldContainer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def id: Any

    Permalink
  2. abstract def meta: MongoMetaRecord[MyType]

    Permalink

    The meta record (the object that contains the meta result for this type)

    The meta record (the object that contains the meta result for this type)

    Definition Classes
    MongoRecordBsonRecord → Record

Concrete 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 allFields: List[Field[_, MyType]]

    Permalink
    Definition Classes
    Record → FieldContainer
  5. def asDBObject: DBObject

    Permalink

    Encode a record instance into a DBObject

    Encode a record instance into a DBObject

    Definition Classes
    BsonRecord
  6. def asDocument: Document

    Permalink
    Definition Classes
    BsonRecord
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asJObject: JObject

    Permalink
    Definition Classes
    Record
  9. def asJSON: JsExp

    Permalink
    Definition Classes
    Record
  10. def asJValue: JValue

    Permalink
    Definition Classes
    Record
  11. def asJsExp: JsExp

    Permalink
    Definition Classes
    Record
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def copy: MyType

    Permalink
    Definition Classes
    Record
  14. def deleteBox_!: Box[Boolean]

    Permalink

    Try to delete the instance from backing store

  15. def delete_!: Boolean

    Permalink

    Delete the instance from backing store

  16. def dirty_?: Boolean

    Permalink
    Definition Classes
    Record
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Record → AnyRef → Any
  19. def equalsWithPatternCheck(other: Any): Boolean

    Permalink

    Pattern.equals doesn't work properly so it needs a special check.

    Pattern.equals doesn't work properly so it needs a special check. If you use PatternField, be sure to override equals with this.

    Attributes
    protected
    Definition Classes
    BsonRecord
  20. def fieldByName(fieldName: String): Box[Field[_, MyType]]

    Permalink
    Definition Classes
    Record
  21. def fields(): List[Field[_, MyType]]

    Permalink
    Definition Classes
    Record
  22. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def insertAsync(): Future[Boolean]

    Permalink

    Inserts record and returns Future that completes when mongo driver finishes operation

  26. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def runSafe[T](f: ⇒ T): T

    Permalink
    Definition Classes
    Record
  31. final def safe_?: Boolean

    Permalink
    Definition Classes
    Record
  32. def save(safe: Boolean = true): MyType

    Permalink

    Save the instance and return the instance

    Save the instance and return the instance

    safe

    - if true will use WriteConcern ACKNOWLEDGED else UNACKNOWLEDGED

  33. def save(concern: WriteConcern): MyType

    Permalink

    Save the instance and return the instance

  34. def saveBox(): Box[MyType]

    Permalink

    Try to save the instance and return the instance in a Box.

  35. def saveTheRecord(): Box[MyType]

    Permalink

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    MongoRecordBsonRecord → Record
  36. def setFieldsFromDBObject(dbo: DBObject): Unit

    Permalink

    Set the fields of this record from the given DBObject

    Set the fields of this record from the given DBObject

    Definition Classes
    BsonRecord
  37. def setFieldsFromJValue(jvalue: JValue): Box[Unit]

    Permalink
    Definition Classes
    Record
  38. def setFieldsFromJsonString(json: String): Box[Unit]

    Permalink
    Definition Classes
    Record
  39. def setFieldsFromReq(req: Req): Unit

    Permalink
    Definition Classes
    Record
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. def toForm(f: (MyType) ⇒ Unit): NodeSeq

    Permalink
    Definition Classes
    Record
  42. def toForm(button: Box[String])(f: (MyType) ⇒ Unit): NodeSeq

    Permalink
    Definition Classes
    Record
  43. def toString(): String

    Permalink
    Definition Classes
    Record → AnyRef → Any
  44. def toXHtml: NodeSeq

    Permalink
    Definition Classes
    Record
  45. def update: MyType

    Permalink

    Update only the dirty fields

  46. def updateBox: Box[MyType]

    Permalink

    Try to update only the dirty fields

  47. def validate: List[FieldError]

    Permalink
    Definition Classes
    Record
  48. final def wait(): Unit

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

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

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

Inherited from BsonRecord[MyType]

Inherited from Record[MyType]

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any

Ungrouped