net.liftweb.record.Record

trait Record

trait Record[MyType <: Record[MyType]]

 extends FieldContainer with ScalaObject




Source: Record.scala(30)

Direct Known Subclasses

DBRecord, ProtoUser, KeyedRecord,

 Fields

allFields.. def allFields List[Field[Any, MyType]]
asJSON.. def asJSON
Retuns the JSON representation of this record [details]
return
- a JsObj
JsExp
asJValue.. def asJValue
Encode this record instance as a JObject
JObject
asJsExp.. def asJsExp
Retuns the JSON representation of this record, converts asJValue to JsObj [details]
return
- a JsObj
JsExp
meta.. abstract def meta
The meta record (the object that contains the meta result for this type)
MetaRecord[MyType]
safe_?.. final def safe_?
Is it safe to make changes to the record (or should we check access control?)
Boolean
toXHtml.. def toXHtml
Returns the HTML representation ofthis Record
NodeSeq
validate.. def validate
Validates this Record by calling validators for each field [details]
return
- a List of FieldError. If this list is empty you can assume that record was validated successfully
List[FieldError]

 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
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
fieldByName.. def fieldByName(fieldName : String)
Find the field by name [details]
param
fieldName - -- the name of the field to find
return
- Box[MappedField]
Box[Field[Any, MyType]]
fields.. def fields
Get the fields defined on the meta object for this record instance
List[Field[Any, MyType]]
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](f : => T) T
setFieldsFromJSON.. def setFieldsFromJSON(json : String)
Sets the fields of this Record from the given JSON
Box[Unit]
setFieldsFromJValue.. def setFieldsFromJValue(jvalue : JValue)
Set the fields of this record from the given JValue
Box[Unit]
setFieldsFromJsonString.. def setFieldsFromJsonString(json : String)
Sets the fields of this Record from the given JSON
Box[Unit]
setFieldsFromReq.. def setFieldsFromReq(req : Req)
Sets the fields of this Record from the given Req
Unit
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toForm.. def toForm(f : (MyType) => Unit)
Present the model as a form and execute the function on submission of the form [details]
param
f - - the function to execute on form submission
return
- the form
NodeSeq
toForm.. def toForm(button : Box[String])(f : (MyType) => Unit)
Present the model as a form and execute the function on submission of the form [details]
param
f - - the function to execute on form submission
button - - If it's Full, put a submit button on the form with the value of the parameter
return
- the form
NodeSeq
toString.. def toString String AnyRef
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.