net.liftweb.couchdb

CouchRecord

trait CouchRecord[MyType <: CouchRecord[MyType]] extends JSONRecord[MyType]

Base trait of records that can be stored in CouchDB

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

Type Members

  1. abstract type _$7

    Definition Classes
    Record

Abstract Value Members

  1. abstract def meta: CouchMetaRecord[MyType]

    Refine meta to require a CouchMetaRecord

    Refine meta to require a CouchMetaRecord

    Definition Classes
    CouchRecordJSONRecord → Record

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def _calcDatabase: Database

    Calculate the database for this record, falling back to the CouchMetaRecord's default database if calculateDatabase does not apply to this instance

  7. def additionalJFields: List[JField]

    Additional fields that are not represented by Record fields, nor are fixed additional fields.

    Additional fields that are not represented by Record fields, nor are fixed additional fields. Default implementation is for preserving unknown fields across read/write

    Definition Classes
    JSONRecord
  8. def additionalJFields_=(fields: List[JField]): Unit

    Handle any additional fields that are not represented by Record fields when decoding from a JObject.

    Handle any additional fields that are not represented by Record fields when decoding from a JObject. Default implementation preserves the fields intact and returns them via additionalJFields

    Definition Classes
    JSONRecord
  9. def allFields: List[net.liftweb.record.Field[_, MyType]]

    Definition Classes
    Record → FieldContainer
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def asJSON: JsExp

    Definition Classes
    Record
  12. def asJValue: JObject

    Definition Classes
    Record
  13. def asJsExp: JsExp

    Definition Classes
    Record
  14. def calculateDatabase: PartialFunction[MyType, Database]

    Override to calculate which database to use on a per-record basis

  15. def canDelete_?: Boolean

    Can this record instance be deleted (e.

    Can this record instance be deleted (e.g. is it in the backing store in the first place?)

  16. def clone(): AnyRef

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

    Definition Classes
    Record
  18. def database: Database

    Return the database this record is associated with, determining it if necessary

  19. def database_=(database: Database): Unit

    Set the current database (if any) for this record

  20. def delete_!: Box[Unit]

    Delete the record instance from the backing store

  21. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    Record
  25. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def fixedAdditionalJFields: List[JField]

    By default include a "type" field with value calculated by the typeName method

    By default include a "type" field with value calculated by the typeName method

    Definition Classes
    CouchRecordJSONRecord
  27. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  29. object id extends OptionalStringField[MyType] with JSONField

    The mandatory _id field

  30. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. object rev extends OptionalStringField[MyType] with JSONField

    The mandatory _rev field

  35. def runSafe[T](f: ⇒ T): T

    Definition Classes
    Record
  36. final def safe_?: Boolean

    Definition Classes
    Record
  37. def save: Box[MyType]

    Save the record instance and return it

  38. def saveTheRecord(): Box[MyType]

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    CouchRecordJSONRecord → Record
  39. def saved_?: Boolean

    Return whether this instance was saved into the backing store or not

  40. def setFieldsFromJSON(json: String): Box[Unit]

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

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

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

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

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

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

    Definition Classes
    Record
  47. def toString(): String

    Definition Classes
    Record → AnyRef → Any
  48. def toXHtml: NodeSeq

    Definition Classes
    Record
  49. def typeName: String

    The value of the "type" field for this class of record.

    The value of the "type" field for this class of record. Only used with default implementation of extraEncodedFields. The default definition is the unqualified class name (e.g. the fully-qualified class name with the package name stripped)

  50. def validate: List[FieldError]

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from JSONRecord[MyType]

Inherited from Record[MyType]

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any