net.liftweb.mapper.Mapper

trait Mapper

trait Mapper[A <: Mapper[A]]

 extends BaseMapper with ScalaObject




Source: Mapper.scala(36)

Direct Known Subclasses

MetaMapper, KeyedMapper,

 Fields

allFields.. def allFields Seq[BaseField]
asHtml.. def asHtml NodeSeq
asJs.. def asJs
Convert the model to a JavaScript object
JsExp
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]
connectionIdentifier.. def connectionIdentifier ConnectionIdentifier
countryField.. def countryField Box[MappedCountry[A]]
dbCalculateConnectionIdentifier.. def dbCalculateConnectionIdentifier PartialFunction[A, ConnectionIdentifier]
dbName.. def dbName String
db_can_delete_?.. def db_can_delete_?
Can this model object be deleted?
Boolean
delete_!.. def delete_!
Delete the model from the RDBMS
Boolean
dirty_?.. def dirty_? Boolean
fieldPF.. def fieldPF PartialFunction
formFields.. def formFields
Get the fields (in order) for displaying a form
List[MappedField[Any, A]]
getSingleton.. abstract def getSingleton MetaMapper[A]
htmlLine.. def htmlLine NodeSeq
localeField.. def localeField
If there's a field in this record that defines the locale, return it
Box[MappedLocale[A]]
safe_?.. final def safe_? Boolean
saved_?.. def saved_? Boolean
timeZoneField.. def timeZoneField Box[MappedTimeZone[A]]
toHtml.. def toHtml
Present the model as a HTML using the same formatting as toForm [details]
return
- the html view of the model
NodeSeq
toXml.. def toXml Elem
validate.. def validate 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
appendField.. def appendField(pf : PartialFunction) Unit
asInstanceOf.. final def asInstanceOf[T0] T0 Any
checkNames.. def checkNames Unit
clone.. protected def clone Object AnyRef
comparePrimaryKeys.. def comparePrimaryKeys(other : A) Boolean
connectionIdentifier.. def connectionIdentifier(id : ConnectionIdentifier) A
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
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
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]]
fieldMapperPF.. def fieldMapperPF(transform : (BaseOwnedMappedField[A]) => NodeSeq) PartialFunction
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]
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]
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
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]
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
runSafe.. def runSafe[T](f : => T) T
save.. def save Boolean
saveMe.. def saveMe
Save the instance and return the instance
A
suplementalJs.. def suplementalJs(ob : Box[KeyObfuscator])
If the instance calculates any additional fields for JSON object, put the calculated fields here
List[(String, JsExp)]
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
thisToMappee.. implicit def thisToMappee(in : Mapper[A]) A
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
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
toForm.. def toForm(button : Box[String], redoSnippet : (NodeSeq) => NodeSeq, onSuccess : (A) => Unit) NodeSeq
toString.. override def toString String
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2011 WorldWide Conferencing, LLC. All Rights Reserved.