net.liftweb.mapper.KeyedMapper

trait KeyedMapper

trait KeyedMapper[KeyType, OwnerType <: KeyedMapper[KeyType, OwnerType]]

 extends Mapper[OwnerType] with BaseKeyedMapper




Source: Mapper.scala(397)

Direct Known Subclasses

KeyedMetaMapper, ProtoUser, LongKeyedMapper, ProtoExtendedSession, OneToMany, ProtoTag,

 Fields

allFields.. def allFields Seq[BaseField] Mapper
asHtml.. def asHtml NodeSeq Mapper
asJs.. def asJs
Convert the model to a JavaScript object
JsExp Mapper
asValid.. def asValid
Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors
Box[A] Mapper
connectionIdentifier.. def connectionIdentifier ConnectionIdentifier Mapper
countryField.. def countryField Box[MappedCountry[A]] Mapper
dbCalculateConnectionIdentifier.. def dbCalculateConnectionIdentifier PartialFunction[A, ConnectionIdentifier] Mapper
dbName.. def dbName String Mapper
db_can_delete_?.. def db_can_delete_?
Can this model object be deleted?
Boolean Mapper
delete_!.. def delete_!
Delete the model from the RDBMS
Boolean Mapper
dirty_?.. def dirty_? Boolean Mapper
fieldPF.. def fieldPF PartialFunction Mapper
formFields.. def formFields
Get the fields (in order) for displaying a form
List[MappedField[Any, A]] Mapper
getSingleton.. abstract def getSingleton KeyedMetaMapper[KeyType, OwnerType]
htmlLine.. def htmlLine NodeSeq Mapper
localeField.. def localeField
If there's a field in this record that defines the locale, return it
Box[MappedLocale[A]] Mapper
primaryKeyField.. abstract def primaryKeyField MappedField[KeyType, OwnerType] with IndexedField[KeyType]
reload.. def reload OwnerType
safe_?.. final def safe_? Boolean Mapper
saved_?.. def saved_? Boolean Mapper
timeZoneField.. def timeZoneField Box[MappedTimeZone[A]] Mapper
toHtml.. def toHtml
Present the model as a HTML using the same formatting as toForm [details]
return
- the html view of the model
NodeSeq Mapper
toXml.. def toXml Elem Mapper
validate.. def validate List[FieldError] Mapper

 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
appendField.. def appendField(pf : PartialFunction) Unit Mapper
asInstanceOf.. final def asInstanceOf[T0] T0 Any
asSafeJs.. def asSafeJs(f : KeyObfuscator) JsExp
checkNames.. def checkNames Unit Mapper
clone.. protected def clone Object AnyRef
comparePrimaryKeys.. override def comparePrimaryKeys(other : OwnerType) Boolean
connectionIdentifier.. def connectionIdentifier(id : ConnectionIdentifier) A Mapper
doPostCommit.. def doPostCommit(func : () => Unit)
Append a function to perform after the commit happens [details]
param
func - - the function to perform after the commit happens
A Mapper
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. override def equals(other : Any) Boolean
fieldByName.. def fieldByName[T](fieldName : String)
Find the field by name [details]
param
fieldName - -- the name of the field to find
return
- Box[MappedField]
Box[MappedField[T, A]] Mapper
fieldMapperPF.. def fieldMapperPF(transform : (BaseOwnedMappedField[A]) => NodeSeq) PartialFunction Mapper
finalize.. protected def finalize Unit AnyRef
flatMapFieldTitleForm.. def flatMapFieldTitleForm[T](func : (NodeSeq, Box[NodeSeq], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list [details]
param
func - called with displayHtml, fieldId, form
List[T] Mapper
flatMapFieldTitleForm2.. def flatMapFieldTitleForm2[T](func : (NodeSeq, MappedField[Any, A], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list [details]
param
func - called with displayHtml, fieldId, form
List[T] Mapper
getClass.. final def getClass Class[Any] AnyRef
hashCode.. override def hashCode Int
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
mapFieldTitleForm.. def mapFieldTitleForm[T](func : (NodeSeq, Box[NodeSeq], NodeSeq) => T)
map the fields titles and forms to generate a list [details]
param
func - called with displayHtml, fieldId, form
List[T] Mapper
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
prependField.. def prependField(pf : PartialFunction) Unit Mapper
runSafe.. def runSafe[T](f : => T) T Mapper
save.. def save Boolean Mapper
saveMe.. def saveMe
Save the instance and return the instance
A Mapper
suplementalJs.. def suplementalJs(ob : Box[KeyObfuscator])
If the instance calculates any additional fields for JSON object, put the calculated fields here
List[(String, JsExp)] Mapper
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
thisToMappee.. implicit def thisToMappee(in : Mapper[A]) A Mapper
toForm.. def toForm(button : Box[String], f : (A) => Any)
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 Mapper
toForm.. def toForm(button : Box[String], onSuccess : String)
Present the model as a form and execute the function on submission of the form [details]
param
onSuccess - - redirect to the URL if the model validates, otherwise display the errors
button - - If it's Full, put a submit button on the form with the value of the parameter
return
- the form
NodeSeq Mapper
toForm.. def toForm(button : Box[String], redoSnippet : (NodeSeq) => NodeSeq, onSuccess : (A) => Unit) NodeSeq Mapper
toString.. override def toString String Mapper
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-2011 WorldWide Conferencing, LLC. All Rights Reserved.