Trait

net.liftweb.mongodb.record

MongoRecord

Related Doc: package record

Permalink

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

Self Type
MyType
Linear Supertypes
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
    MongoRecordBsonRecordRecord

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
    RecordFieldContainer
  5. def asDBObject: DBObject

    Permalink

    Encode a record instance into a DBObject

    Encode a record instance into a DBObject

    Definition Classes
    BsonRecord
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def asJObject: JObject

    Permalink

    Encode this record instance as a JObject

    Encode this record instance as a JObject

    Definition Classes
    Record
  8. def asJSON: JsExp

    Permalink

    Returns the JSON representation of this record

    Returns the JSON representation of this record

    returns

    a JsObj

    Definition Classes
    Record
  9. def asJValue: JValue

    Permalink

    Encode this record instance as a JValue

    Encode this record instance as a JValue

    Definition Classes
    Record
  10. def asJsExp: JsExp

    Permalink

    Returns the JSON representation of this record, converts asJValue to JsObj

    Returns the JSON representation of this record, converts asJValue to JsObj

    returns

    a JsObj

    Definition Classes
    Record
  11. def clone(): AnyRef

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

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

    Permalink

    Try to delete the instance from backing store

  14. def delete_!: Boolean

    Permalink

    Delete the instance from backing store

  15. def dirty_?: Boolean

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

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

    Permalink
    Definition Classes
    Record → AnyRef → Any
  18. 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
  19. def fieldByName(fieldName: String): Box[Field[_, MyType]]

    Permalink

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

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

    Permalink

    Get the fields defined on the meta object for this record instance

    Get the fields defined on the meta object for this record instance

    Definition Classes
    Record
  21. def finalize(): Unit

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

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

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

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

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

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

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

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

    Permalink

    Is it safe to make changes to the record (or should we check access control?)

    Is it safe to make changes to the record (or should we check access control?)

    Definition Classes
    Record
  30. 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

  31. def save(concern: WriteConcern): MyType

    Permalink

    Save the instance and return the instance

  32. def saveBox(): Box[MyType]

    Permalink

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

  33. def saveTheRecord(): Box[MyType]

    Permalink

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    MongoRecordBsonRecordRecord
  34. 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
  35. def setFieldsFromJValue(jvalue: JValue): Box[Unit]

    Permalink

    Set the fields of this record from the given JValue

    Set the fields of this record from the given JValue

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

    Permalink

    Sets the fields of this Record from the given JSON.

    Sets the fields of this Record from the given JSON.

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

    Permalink

    Sets the fields of this Record from the given Req.

    Sets the fields of this Record from the given Req.

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

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

    Permalink

    Present the model as a form and execute the function on submission of the form

    Present the model as a form and execute the function on submission of the form

    f

    - the function to execute on form submission

    returns

    the form

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

    Permalink

    Present the model as a form and execute the function on submission of the form

    Present the model as a form and execute the function on submission of the form

    button

    - If it's Full, put a submit button on the form with the value of the parameter

    f

    - the function to execute on form submission

    returns

    the form

    Definition Classes
    Record
  41. def toString(): String

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

    Permalink

    Returns the HTML representation of this Record

    Returns the HTML representation of this Record

    Definition Classes
    Record
  43. def update: MyType

    Permalink

    Update only the dirty fields

  44. def updateBox: Box[MyType]

    Permalink

    Try to update only the dirty fields

  45. def validate: List[FieldError]

    Permalink

    Validates this Record by calling validators for each field

    Validates this Record by calling validators for each field

    returns

    a List of FieldError. If this list is empty you can assume that record was validated successfully

    Definition Classes
    Record
  46. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. 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