net.liftweb.couchdb.JSONMetaRecord

trait JSONMetaRecord

trait JSONMetaRecord[BaseRecord <: JSONRecord[BaseRecord]]

 extends MetaRecord[BaseRecord]


Specialized MetaRecord that deals with JSONRecords


Companion: JSONMetaRecord

Source: JSONRecord.scala(106)

Direct Known Subclasses

CouchMetaRecord,

 Fields

createRecord.. abstract def createRecord BaseRecord MetaRecord
fieldOrder.. def fieldOrder List[OwnedField[BaseRecord]] MetaRecord
formTemplate.. var formTemplate Box[NodeSeq] MetaRecord
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
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
rootClass.. protected val rootClass Class[Any] MetaRecord

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
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
asJValue.. def asJValue(rec : BaseRecord)
Encode a record instance into a JValue
JObject
clone.. protected def clone Object AnyRef
createWithMutableField.. def createWithMutableField[FieldType](arg0 : BaseRecord, arg1 : Field[FieldType, BaseRecord], arg2 : Box[FieldType]) BaseRecord MetaRecord
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
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]
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
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
setFieldsFromJSON.. override def setFieldsFromJSON(inst : BaseRecord, json : String) Box[Unit]
setFieldsFromJValue.. def setFieldsFromJValue(rec : BaseRecord, jvalue : JValue)
Attempt to decode a JValue, which must be a JObject, into a record instance
Box[Unit]
setFieldsFromReq.. def setFieldsFromReq(arg0 : BaseRecord, arg1 : Req) Box[Unit] MetaRecord
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toForm.. def toForm(arg0 : BaseRecord, arg1 : NodeSeq) NodeSeq MetaRecord
toForm.. def toForm(arg0 : BaseRecord) 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, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.