net.liftweb.record.KeyedRecord

trait KeyedRecord

trait KeyedRecord[MyType <: KeyedRecord[MyType, KeyType], KeyType]

 extends Record[MyType]




Source: Record.scala(149)

 Fields

asJSON.. def asJSON
Retuns the JSON representation of this record [details]
return
- a JsObjss
JsExp Record
meta.. abstract def meta
The meta record (the object that contains the meta result for this type)
MetaRecord[MyType] Record
primaryKey.. abstract def primaryKey KeyField[KeyType, MyType]
safe_?.. final def safe_?
Is it safe to make changes to the record (or should we check access control?)
Boolean Record
toXHtml.. def toXHtml
Returns the HTML representation ofthis Record
NodeSeq Record
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] Record

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
comparePrimaryKeys.. def comparePrimaryKeys(other : MyType) Boolean
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[OwnedField[MyType]] Record
fields.. def fields
Get the fields defined on the meta object for this record instance
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](f : => T) T Record
setFieldsFromJSON.. def setFieldsFromJSON(json : String)
Sets the fields of this Record from the given JSON
Box[Unit] Record
setFieldsFromReq.. def setFieldsFromReq(req : Req)
Sets the fields of this Record from the given Req
Box[Unit] Record
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
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 Record
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 Record
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.