| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait CouchRecord[MyType <: CouchRecord[MyType]]
extends
JSONRecord[MyType]
| _calcDatabase.. |
def _calcDatabase
Calculate the database for this record, falling back to the CouchMetaRecord's default database if
calculateDatabase does not apply to this instance
|
Database | |
| additionalJFields.. |
def additionalJFields
Additional fields that are not represented by Record fields, nor are fixed additional fields
[details]
Default implementation is for preserving unknown fields across read/write
|
List[JField] | JSONRecord |
| asJSON.. |
def asJSON
|
JsExp | Record |
| asJValue.. |
def asJValue
Encode this record instance as a JObject
|
JObject | JSONRecord |
| calculateDatabase.. |
def calculateDatabase
Override to calculate which database to use on a per-record basis
|
PartialFunction[MyType, Database] | |
| canDelete_?.. |
def canDelete_?
Can this record instance be deleted (e
[details]
g. is it in the backing store in the first place?)
|
Boolean | |
| database.. |
def database
Return the database this record is associated with, determining it if necessary
|
Database | |
| delete_!.. |
def delete_!
Delete the record instance from the backing store
|
Box[Unit] | |
| fixedAdditionalJFields.. |
override def fixedAdditionalJFields
By default include a "type" field with value calculated by the typeName method
|
List[JField] | |
| id.. |
object id
The mandatory _id field
|
|
|
| meta.. |
abstract def meta
Refine meta to require a CouchMetaRecord
|
CouchMetaRecord[MyType] | |
| rev.. |
object rev
The mandatory _rev field
|
|
|
| safe_?.. |
final def safe_?
|
Boolean | Record |
| save.. |
def save
Save the record instance and return it
|
Box[MyType] | |
| saved_?.. |
def saved_?
Return whether this instance was saved into the backing store or not
|
Boolean | |
| toXHtml.. |
def toXHtml
|
NodeSeq | Record |
| typeName.. |
def typeName
The value of the "type" field for this class of record
[details]
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)
|
String | |
| validate.. |
def validate
|
List[FieldError] | Record |
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| additionalJFields_=.. |
def additionalJFields_=(fields : List[JField])
Handle any additional fields that are not represented by Record fields when decoding from a JObject
[details]
Default implementation preserves the fields intact and returns them via additionalJFields
|
Unit | JSONRecord |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| clone.. |
protected def clone
|
Object | AnyRef |
| database_=.. |
def database_=(database : Database)
Set the current database (if any) for this record
|
Unit | |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| fieldByName.. |
def fieldByName(arg0 : String)
|
Box[OwnedField[MyType]] | Record |
| fields.. |
def fields
|
List[OwnedField[MyType]] | Record |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| hashCode.. |
def hashCode
|
Int | AnyRef |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| runSafe.. |
def runSafe[T](arg0 : => T)
|
T | Record |
| setFieldsFromJSON.. |
def setFieldsFromJSON(arg0 : String)
|
Box[Unit] | Record |
| setFieldsFromJValue.. |
def setFieldsFromJValue(jvalue : JValue)
Set the fields of this record from the given JValue
|
Box[Unit] | JSONRecord |
| setFieldsFromReq.. |
def setFieldsFromReq(arg0 : Req)
|
Box[Unit] | Record |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toForm.. |
def toForm(arg0 : Box[String])
|
NodeSeq | Record |
| toForm.. |
def toForm(arg0 : (MyType) => Unit)
|
NodeSeq | Record |
| toString.. |
def toString
|
String | AnyRef |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |