net.liftweb.mongodb.record

MongoRecord

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. Hide All
  2. Show all
  1. MongoRecord
  2. BsonRecord
  3. Record
  4. FieldContainer
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def id : Any

    Attributes
    abstract
  2. def meta : MongoMetaRecord[MyType]

    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)

    Attributes
    abstract
    Definition Classes
    MongoRecordBsonRecordRecord

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def allFields : List[net.liftweb.record.Field[_, MyType]]

    Definition Classes
    RecordFieldContainer
  7. def asDBObject : DBObject

    Encode a record instance into a DBObject

    Encode a record instance into a DBObject

    Definition Classes
    BsonRecord
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def asJSON : JsExp

    Retuns the JSON representation of this record

    Retuns the JSON representation of this record

    returns

    a JsObj

    Definition Classes
    Record
  10. def asJValue : JObject

    Encode this record instance as a JObject

    Encode this record instance as a JObject

    Definition Classes
    Record
  11. def asJsExp : JsExp

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

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

    returns

    a JsObj

    Definition Classes
    Record
  12. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def delete_! : Boolean

    Delete the instance from backing store

  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def fieldByName (fieldName: String): Box[net.liftweb.record.Field[_, MyType]]

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

    Definition Classes
    Record
  17. def fields (): List[net.liftweb.record.Field[_, MyType]]

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def runSafe [T] (f: ⇒ T): T

    Definition Classes
    Record
  26. def safe_? : Boolean

    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?)

    Attributes
    final
    Definition Classes
    Record
  27. def save : MyType

    Save the instance and return the instance WILL NOT RAISE MONGO SERVER ERRORS.

    Save the instance and return the instance WILL NOT RAISE MONGO SERVER ERRORS. Use save(Boolean) or save(WriteConcern) to control error behavior

  28. def save (safe: Boolean): MyType

    Save the instance and return the instance

    Save the instance and return the instance

    safe

    - if true will use WriteConcern SAFE else NORMAL

  29. def save (concern: WriteConcern): MyType

    Save the instance and return the instance

  30. def saveTheRecord (): Box[MyType]

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    MongoRecordBsonRecordRecord
  31. def setFieldsFromDBObject (dbo: DBObject): Unit

    Set the fields of this record from the given DBObject

    Set the fields of this record from the given DBObject

    Definition Classes
    BsonRecord
  32. def setFieldsFromJSON (json: String): Box[Unit]

    Sets the fields of this Record from the given JSON.

    Sets the fields of this Record from the given JSON.

    Definition Classes
    Record
  33. def setFieldsFromJValue (jvalue: JValue): Box[Unit]

    Set the fields of this record from the given JValue

    Set the fields of this record from the given JValue

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

    Sets the fields of this Record from the given JSON.

    Sets the fields of this Record from the given JSON.

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

    Sets the fields of this Record from the given Req.

    Sets the fields of this Record from the given Req.

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

    Attributes
    final
    Definition Classes
    AnyRef
  37. def toForm (f: (MyType) ⇒ Unit): NodeSeq

    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
  38. def toForm (button: Box[String])(f: (MyType) ⇒ Unit): NodeSeq

    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
  39. def toString (): String

    Definition Classes
    BsonRecord → AnyRef → Any
  40. def toXHtml : NodeSeq

    Returns the HTML representation ofthis Record

    Returns the HTML representation ofthis Record

    Definition Classes
    Record
  41. def update : MyType

    Update only the dirty fields

  42. def validate : List[FieldError]

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from BsonRecord[MyType]

Inherited from Record[MyType]

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any