net.liftweb.mapper

Mapper

trait Mapper [A <: Mapper[A]] extends BaseMapper with Serializable

Self Type
A
Linear Supertypes
Serializable, Serializable, BaseMapper, FieldContainer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Mapper
  2. Serializable
  3. Serializable
  4. BaseMapper
  5. FieldContainer
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Type Members

  1. type FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

  2. type MapperType = A

    Definition Classes
    MapperBaseMapper

Abstract Value Members

  1. def getSingleton : MetaMapper[A]

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def allFields : Seq[BaseField]

    Definition Classes
    Mapper → FieldContainer
  7. def appendFieldTransform (transform: CssSel): Unit

  8. def asHtml : NodeSeq

  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def asJs : JsExp

    Convert the model to a JavaScript object

  11. def asValid : Box[A]

    Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors

  12. def checkNames : Unit

  13. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def comparePrimaryKeys (other: A): Boolean

  15. def connectionIdentifier : ConnectionIdentifier

  16. def connectionIdentifier (id: ConnectionIdentifier): A

  17. def countryField : Box[MappedCountry[A]]

  18. def dbCalculateConnectionIdentifier : PartialFunction[A, ConnectionIdentifier]

  19. def dbName : String

    Definition Classes
    MapperBaseMapper
  20. def db_can_delete_? : Boolean

    Can this model object be deleted?

  21. def delete_! : Boolean

    Delete the model from the RDBMS

  22. def dirty_? : Boolean

  23. def doPostCommit (func: () ⇒ Unit): A

    Append a function to perform after the commit happens

    Append a function to perform after the commit happens

    func

    - the function to perform after the commit happens

  24. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def fieldByName [T] (fieldName: String): Box[MappedField[T, A]]

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

  27. def fieldMapperTransforms (fieldTransform: (BaseOwnedMappedField[A]) ⇒ NodeSeq): Seq[CssSel]

  28. def fieldTransforms : Seq[CssSel]

  29. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. def flatMapFieldTitleForm [T] (func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

  31. def flatMapFieldTitleForm2 [T] (func: (NodeSeq, net.liftweb.mapper.MappedField[_, A], NodeSeq) ⇒ Seq[T]): List[T]

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

  32. def formFields : List[net.liftweb.mapper.MappedField[_, A]]

    Get the fields (in order) for displaying a form

  33. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  34. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  35. def htmlLine : NodeSeq

  36. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  37. def localeField : Box[MappedLocale[A]]

    If there's a field in this record that defines the locale, return it

  38. def mapFieldTitleForm [T] (func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]

    map the fields titles and forms to generate a list

    map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

  39. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  40. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  41. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  42. def prependFieldTransform (transform: CssSel): Unit

  43. def runSafe [T] (f: ⇒ T): T

  44. def safe_? : Boolean

    Attributes
    final
  45. def save (): Boolean

    Definition Classes
    MapperBaseMapper
  46. def saveMe (): A

    Save the instance and return the instance

  47. def saved_? : Boolean

  48. def suplementalJs (ob: Box[KeyObfuscator]): List[(String, JsExp)]

    If the instance calculates any additional fields for JSON object, put the calculated fields here

  49. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  50. implicit def thisToMappee (in: Mapper[A]): A

    Attributes
    implicit
  51. def timeZoneField : Box[MappedTimeZone[A]]

  52. def toForm (button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (A) ⇒ Unit): NodeSeq

  53. def toForm (button: Box[String], f: (A) ⇒ Any): NodeSeq

    Present the model as a form and execute the function on submission of the form

    Present the model as a form and execute the function on submission of the form

    button

    - If it's Full, put a submit button on the form with the value of the parameter

    f

    - the function to execute on form submission

    returns

    the form

  54. def toForm (button: Box[String], onSuccess: String): NodeSeq

    Present the model as a form and execute the function on submission of the form

    Present the model as a form and execute the function on submission of the form

    button

    - If it's Full, put a submit button on the form with the value of the parameter

    onSuccess

    - redirect to the URL if the model validates, otherwise display the errors

    returns

    the form

  55. def toHtml : NodeSeq

    Present the model as a HTML using the same formatting as toForm

    Present the model as a HTML using the same formatting as toForm

    returns

    the html view of the model

  56. def toString (): String

    Definition Classes
    Mapper → AnyRef → Any
  57. def toXml : Elem

  58. def validate : List[FieldError]

  59. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  60. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  61. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def appendField (pf: FieldPF): Unit

    Annotations
    @deprecated
    Deprecated

    Use appendFieldTransform with CssSels instead.

  2. def fieldMapperPF (transform: (BaseOwnedMappedField[A]) ⇒ NodeSeq): FieldPF

    Annotations
    @deprecated
    Deprecated

    Use fieldMapperTransforms with CssSels instead.

  3. def fieldPF : FieldPF

    Annotations
    @deprecated
    Deprecated

    Use fieldTransforms with CssSels instead.

  4. def prependField (pf: FieldPF): Unit

    Annotations
    @deprecated
    Deprecated

    Use prependFieldTransform with CssSels instead.

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any