| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait CouchMetaRecord[BaseRecord <: CouchRecord[BaseRecord]]
extends
JSONMetaRecord[BaseRecord]
| createRecord.. |
abstract def createRecord
|
BaseRecord | MetaRecord |
| defaultDatabase.. |
def defaultDatabase
Get the default Database to use, if the record's calculateDatabase function does not provide one
[details]
Defaults to CouchDB.defaultDatabase
|
Database | |
| fieldOrder.. |
def fieldOrder
|
List[OwnedField[BaseRecord]] | MetaRecord |
| formTemplate.. |
var formTemplate
|
Box[NodeSeq] | MetaRecord |
| http.. |
def http
Get an Http instance to use when accessing CouchDB
|
Http | |
| ignoreExtraJSONFields.. |
def ignoreExtraJSONFields
Whether or not extra fields in a JObject to decode is an error (false) or not (true)
[details]
The default is true
|
Boolean | JSONMetaRecord |
| mutable_?.. |
def mutable_?
|
Boolean | MetaRecord |
| needAllJSONFields.. |
def needAllJSONFields
Whether or not missing fields in a JObject to decode is an error (false) or not (true)
[details]
The default is true
|
Boolean | JSONMetaRecord |
| rootClass.. |
protected val rootClass
|
Class[Any] | MetaRecord |
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| all.. |
def all(filter : (AllDocs) => AllDocs)
Query records from the default database by document id
[details]
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
|
Box[Seq[BaseRecord]] | |
| allIn.. |
def allIn(database : Database, filter : (AllDocs) => AllDocs)
Query records from the given database by document id
[details]
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
|
Box[Seq[BaseRecord]] | |
| appendDispatch.. |
def appendDispatch(arg0 : PartialFunction[Req, (BaseRecord) => Box[LiftResponse]])
|
RulesSeq[PartialFunction] | MetaRecord |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| asJSON.. |
override def asJSON(inst : BaseRecord)
|
JsObj | JSONMetaRecord |
| asJValue.. |
def asJValue(rec : BaseRecord)
Encode a record instance into a JValue
|
JObject | JSONMetaRecord |
| clone.. |
protected def clone
|
Object | AnyRef |
| createWithMutableField.. |
def createWithMutableField[FieldType](arg0 : BaseRecord, arg1 : Field[FieldType, BaseRecord], arg2 : Box[FieldType])
|
BaseRecord | MetaRecord |
| delete_!.. |
def delete_!(inst : BaseRecord)
Delete the instance from the backing store
[details]
Only works if the instance is the current revision in the database.
|
Box[Unit] | |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| fetch.. |
def fetch(id : String)
Query a single document by _id from the default database
|
Box[BaseRecord] | |
| fetchFrom.. |
def fetchFrom(database : Database, id : String)
Query a single document by _id from the given database
|
Box[BaseRecord] | |
| fetchMany.. |
def fetchMany(ids : String*)
Query a series of documents by _id from the default database
|
Box[Seq[BaseRecord]] | |
| fetchManyFrom.. |
def fetchManyFrom(database : Database, ids : String*)
Query a series of documents by _id from the given database
|
Box[Seq[BaseRecord]] | |
| fieldByName.. |
def fieldByName(arg0 : String, arg1 : BaseRecord)
|
Box[OwnedField[BaseRecord]] | MetaRecord |
| fields.. |
def fields(arg0 : BaseRecord)
|
List[OwnedField[BaseRecord]] | MetaRecord |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| foreachCallback.. |
protected def foreachCallback(arg0 : BaseRecord, arg1 : (LifecycleCallbacks) => Any)
|
Unit | MetaRecord |
| fromJSON.. |
def fromJSON(arg0 : String)
|
Box[BaseRecord] | MetaRecord |
| fromJValue.. |
def fromJValue(jvalue : JValue)
Create a record by decoding a JValue which must be a JObject
|
Box[BaseRecord] | JSONMetaRecord |
| fromReq.. |
def fromReq(arg0 : Req)
|
BaseRecord | MetaRecord |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| hashCode.. |
def hashCode
|
Int | AnyRef |
| introspect.. |
def introspect(arg0 : BaseRecord, arg1 : Array[Method])
|
Unit | MetaRecord |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| jsonName.. |
def jsonName(field : OwnedField[BaseRecord])
Return the name of the field in the encoded JSON object
[details]
If the field implements JSONField and has overridden jsonName then
that will be used, otherwise the record field name
|
String | JSONMetaRecord |
| looseParsing.. |
def looseParsing[A](f : => A)
Perform the given action with loose parsing turned on
|
A | |
| metaFields.. |
def metaFields
|
List[OwnedField[BaseRecord]] | MetaRecord |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| prependDispatch.. |
def prependDispatch(arg0 : PartialFunction[Req, (BaseRecord) => Box[LiftResponse]])
|
RulesSeq[PartialFunction] | MetaRecord |
| queryView.. |
def queryView(design : String, view : String)
Query using a view in the default database
|
Box[Seq[BaseRecord]] | |
| queryView.. |
def queryView(design : String, view : String, filter : (View) => View)
Query using a view in the default database
[details]
Filter refines the query (e.g. by key), see Queryable.
|
Box[Seq[BaseRecord]] | |
| queryViewDocs.. |
def queryViewDocs(design : String, view : String, filter : (View) => View)
Query using a view in the default database, returning records created from the documents returned with the view
[details]
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.
|
Box[Seq[BaseRecord]] | |
| queryViewDocs.. |
def queryViewDocs(design : String, view : String)
Query using a view in the default database, returning records created from the documents returned with the view
[details]
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.
|
Box[Seq[BaseRecord]] | |
| queryViewDocsFrom.. |
def queryViewDocsFrom(database : Database, design : String, view : String, filter : (View) => View)
Query using a view in the given database, returning records created from the documents returned with the view
[details]
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.
|
Box[Seq[BaseRecord]] | |
| queryViewFrom.. |
def queryViewFrom(database : Database, design : String, view : String, filter : (View) => View)
Query using a view in the given database
[details]
Filter refines the query (e.g. by key), see Queryable.
|
Box[Seq[BaseRecord]] | |
| queryViewProjection.. |
def queryViewProjection(design : String, view : String, project : (QueryRow) => Box[JValue])
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
|
Box[Seq[BaseRecord]] | |
| queryViewProjection.. |
def queryViewProjection(design : String, view : String, filter : (View) => View, project : (QueryRow) => Box[JValue])
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
[details]
Filter refines the query (e.g. by key), see Queryable.
|
Box[Seq[BaseRecord]] | |
| queryViewProjectionFrom.. |
def queryViewProjectionFrom(database : Database, design : String, view : String, filter : (View) => View, project : (QueryRow) => Box[JValue])
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
|
Box[Seq[BaseRecord]] | |
| save.. |
def save(inst : BaseRecord)
Save the record instance in the backing store
|
Box[Unit] | |
| saved_?.. |
def saved_?(inst : BaseRecord)
Was the record instance saved in the backing store?
|
Boolean | |
| setFieldsFromJSON.. |
override def setFieldsFromJSON(inst : BaseRecord, json : String)
|
Box[Unit] | JSONMetaRecord |
| setFieldsFromJValue.. |
def setFieldsFromJValue(rec : BaseRecord, jvalue : JValue)
Attempt to decode a JValue, which must be a JObject, into a record instance
|
Box[Unit] | JSONMetaRecord |
| setFieldsFromReq.. |
def setFieldsFromReq(arg0 : BaseRecord, arg1 : Req)
|
Box[Unit] | MetaRecord |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toForm.. |
def toForm(arg0 : BaseRecord)
|
NodeSeq | MetaRecord |
| toForm.. |
def toForm(arg0 : BaseRecord, arg1 : NodeSeq)
|
NodeSeq | MetaRecord |
| toString.. |
def toString
|
String | AnyRef |
| toXHtml.. |
def toXHtml(arg0 : BaseRecord)
|
NodeSeq | MetaRecord |
| validate.. |
def validate(arg0 : BaseRecord)
|
List[FieldError] | MetaRecord |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |