net.liftweb.couchdb

CouchMetaRecord

trait CouchMetaRecord[BaseRecord <: CouchRecord[BaseRecord]] extends JSONMetaRecord[BaseRecord]

Base trait of meta records for records that can be stored in CouchDB

Self Type
CouchMetaRecord[BaseRecord] with BaseRecord
Linear Supertypes
JSONMetaRecord[BaseRecord], MetaRecord[BaseRecord], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CouchMetaRecord
  2. JSONMetaRecord
  3. MetaRecord
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. abstract type _$8

    Definition Classes
    MetaRecord
  2. abstract type _$8

    Definition Classes
    MetaRecord

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 all(filter: (AllDocs) ⇒ AllDocs): Box[Seq[BaseRecord]]

    Query records from the default database by document id.

    Query records from the default database by document id. includeDocs is always on for this type of query. Filter refines the query (e.g. by key), see Queryable. Note that this is probably not very useful, as there is no way to constrain the documents retrieved by type

  7. def allIn(database: Database, filter: (AllDocs) ⇒ AllDocs): Box[Seq[BaseRecord]]

    Query records from the given database by document id.

    Query records from the given database by document id. includeDocs is always on for this type of query. Filter refines the query (e.g. by key), see Queryable. Note that this is probably not very useful, as there is no way to constrain the documents retrieved by type

  8. def appendDispatch(func: PartialFunction[Req, (BaseRecord) ⇒ Box[LiftResponse]]): RulesSeq[PartialFunction[Req, () ⇒ Box[LiftResponse]]]

    Definition Classes
    MetaRecord
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asJSON(inst: BaseRecord): JsObj

    Definition Classes
    JSONMetaRecord → MetaRecord
  11. def asJValue(rec: BaseRecord): JObject

    Encode a record instance into a JValue

    Encode a record instance into a JValue

    Definition Classes
    JSONMetaRecord → MetaRecord
  12. def asJsExp(inst: BaseRecord): JsExp

    Definition Classes
    MetaRecord
  13. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def copy(rec: BaseRecord): BaseRecord

    Definition Classes
    MetaRecord
  15. def createRecord: BaseRecord

    Definition Classes
    MetaRecord
  16. def createWithMutableField[FieldType](original: BaseRecord, field: Field[FieldType, BaseRecord], newValue: Box[FieldType]): BaseRecord

    Definition Classes
    MetaRecord
  17. def defaultDatabase: Database

    Get the default Database to use, if the record's calculateDatabase function does not provide one.

    Get the default Database to use, if the record's calculateDatabase function does not provide one. Defaults to CouchDB.defaultDatabase

  18. def delete_!(inst: BaseRecord): Box[Unit]

    Delete the instance from the backing store.

    Delete the instance from the backing store. Only works if the instance is the current revision in the database.

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

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def fetch(id: String): Box[BaseRecord]

    Query a single document by _id from the default database

  22. def fetchFrom(database: Database, id: String): Box[BaseRecord]

    Query a single document by _id from the given database

  23. def fetchMany(ids: String*): Box[Seq[BaseRecord]]

    Query a series of documents by _id from the default database

  24. def fetchManyFrom(database: Database, ids: String*): Box[Seq[BaseRecord]]

    Query a series of documents by _id from the given database

  25. def fieldByName(fieldName: String, inst: BaseRecord): Box[net.liftweb.record.Field[_, BaseRecord]]

    Definition Classes
    MetaRecord
  26. def fieldOrder: List[net.liftweb.record.Field[_, BaseRecord]]

    Definition Classes
    MetaRecord
  27. def fields(rec: BaseRecord): List[net.liftweb.record.Field[_, BaseRecord]]

    Definition Classes
    MetaRecord
  28. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. def foreachCallback(inst: BaseRecord, f: (LifecycleCallbacks) ⇒ Any): Unit

    Definition Classes
    MetaRecord
  30. var formTemplate: Box[NodeSeq]

    Definition Classes
    MetaRecord
  31. def fromJSON(json: String): Box[BaseRecord]

    Definition Classes
    MetaRecord
  32. def fromJValue(jvalue: JValue): Box[BaseRecord]

    Definition Classes
    MetaRecord
  33. def fromJsonString(json: String): Box[BaseRecord]

    Definition Classes
    MetaRecord
  34. def fromReq(r: Req): BaseRecord

    Definition Classes
    MetaRecord
  35. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  37. def http: Http

    Get an Http instance to use when accessing CouchDB

  38. def ignoreExtraJSONFields: Boolean

    Whether or not extra fields in a JObject to decode is an error (false) or not (true).

    Whether or not extra fields in a JObject to decode is an error (false) or not (true). The default is true

    Definition Classes
    JSONMetaRecord
  39. def instantiateRecord: BaseRecord

    Attributes
    protected
    Definition Classes
    MetaRecord
  40. def introspect(rec: BaseRecord, methods: Array[Method])(f: (Method, net.liftweb.record.Field[_, BaseRecord]) ⇒ Any): Unit

    Definition Classes
    MetaRecord
  41. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  42. def jsonName(field: net.liftweb.record.Field[_, BaseRecord]): String

    Return the name of the field in the encoded JSON object.

    Return the name of the field in the encoded JSON object. If the field implements JSONField and has overridden jsonName then that will be used, otherwise the record field name

    Definition Classes
    JSONMetaRecord
  43. def looseParsing[A](f: ⇒ A): A

    Perform the given action with loose parsing turned on

  44. def metaFields(): List[net.liftweb.record.Field[_, BaseRecord]]

    Definition Classes
    MetaRecord
  45. def mutable_?: Boolean

    Definition Classes
    MetaRecord
  46. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  47. def needAllJSONFields: Boolean

    Whether or not missing fields in a JObject to decode is an error (false) or not (true).

    Whether or not missing fields in a JObject to decode is an error (false) or not (true). The default is true

    Definition Classes
    JSONMetaRecord
  48. final def notify(): Unit

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

    Definition Classes
    AnyRef
  50. def prependDispatch(func: PartialFunction[Req, (BaseRecord) ⇒ Box[LiftResponse]]): RulesSeq[PartialFunction[Req, () ⇒ Box[LiftResponse]]]

    Definition Classes
    MetaRecord
  51. def queryView(design: String, view: String, filter: (View) ⇒ View): Box[Seq[BaseRecord]]

    Query using a view in the default database.

    Query using a view in the default database. Filter refines the query (e.g. by key), see Queryable.

  52. def queryView(design: String, view: String): Box[Seq[BaseRecord]]

    Query using a view in the default database.

  53. def queryViewDocs(design: String, view: String, filter: (View) ⇒ View): Box[Seq[BaseRecord]]

    Query using a view in the default database, returning records created from the documents returned with the view.

    Query using a view in the default database, returning records created from the documents returned with the view. If used against a reduce view, make sure to use dontReduce in the filter, otherwise CouchDB will signal an error. Filter refines the query (e.g. by key), see Queryable. includeDocs are always on for this type of query.

  54. def queryViewDocs(design: String, view: String): Box[Seq[BaseRecord]]

    Query using a view in the default database, returning records created from the documents returned with the view.

    Query using a view in the default database, returning records created from the documents returned with the view. If used against a reduce view, make sure to use dontReduce in the filter, otherwise CouchDB will signal an error. includeDocs are always on for this type of query.

  55. def queryViewDocsFrom(database: Database, design: String, view: String, filter: (View) ⇒ View): Box[Seq[BaseRecord]]

    Query using a view in the given database, returning records created from the documents returned with the view.

    Query using a view in the given database, returning records created from the documents returned with the view. If used against a reduce view, make sure to use dontReduce in the filter, otherwise CouchDB will signal an error. Filter refines the query (e.g. by key), see Queryable. includeDocs are always on for this type of query.

  56. def queryViewFrom(database: Database, design: String, view: String, filter: (View) ⇒ View): Box[Seq[BaseRecord]]

    Query using a view in the given database.

    Query using a view in the given database. Filter refines the query (e.g. by key), see Queryable.

  57. def queryViewProjection(design: String, view: String, filter: (View) ⇒ View, project: (QueryRow) ⇒ Box[JValue]): Box[Seq[BaseRecord]]

    Query using a view in the default database, using some projection function that converts each QueryRow into a JSON document to read as the record.

    Query using a view in the default database, using some projection function that converts each QueryRow into a JSON document to read as the record. Filter refines the query (e.g. by key), see Queryable.

  58. def queryViewProjection(design: String, view: String, project: (QueryRow) ⇒ Box[JValue]): Box[Seq[BaseRecord]]

    Query using a view in the default database, using some projection function that converts each QueryRow into a JSON document to read as the record.

  59. def queryViewProjectionFrom(database: Database, design: String, view: String, filter: (View) ⇒ View, project: (QueryRow) ⇒ Box[JValue]): Box[Seq[BaseRecord]]

    Query using a view in the given database, using some projection function that converts each QueryRow into a JSON document to read as the record.

  60. val rootClass: java.lang.Class[_ >: ?0]

    Attributes
    protected
    Definition Classes
    MetaRecord
  61. def save(inst: BaseRecord): Box[Unit]

    Save the record instance in the backing store

  62. def saved_?(inst: BaseRecord): Boolean

    Was the record instance saved in the backing store?

  63. def setFieldsFromJSON(inst: BaseRecord, json: String): Box[Unit]

    Definition Classes
    JSONMetaRecord → MetaRecord
  64. def setFieldsFromJValue(rec: BaseRecord, jvalue: JValue): Box[Unit]

    Attempt to decode a JValue, which must be a JObject, into a record instance

    Attempt to decode a JValue, which must be a JObject, into a record instance

    Definition Classes
    JSONMetaRecord → MetaRecord
  65. def setFieldsFromJsonString(inst: BaseRecord, json: String): Box[Unit]

    Definition Classes
    MetaRecord
  66. def setFieldsFromRecord(inst: BaseRecord, rec: BaseRecord): Unit

    Definition Classes
    MetaRecord
  67. def setFieldsFromReq(inst: BaseRecord, req: Req): Unit

    Definition Classes
    MetaRecord
  68. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  69. def toForm(inst: BaseRecord, template: NodeSeq): NodeSeq

    Definition Classes
    MetaRecord
  70. def toForm(inst: BaseRecord): NodeSeq

    Definition Classes
    MetaRecord
  71. def toString(): String

    Definition Classes
    AnyRef → Any
  72. def toXHtml(inst: BaseRecord): NodeSeq

    Definition Classes
    MetaRecord
  73. def validate(inst: BaseRecord): List[FieldError]

    Definition Classes
    MetaRecord
  74. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from JSONMetaRecord[BaseRecord]

Inherited from MetaRecord[BaseRecord]

Inherited from AnyRef

Inherited from Any