Trait

net.liftweb.mapper

Mapper

Related Doc: package mapper

Permalink

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

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

Type Members

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

    Permalink
  2. type MapperType = A

    Permalink
    Definition Classes
    MapperBaseMapper

Abstract Value Members

  1. abstract def getSingleton: MetaMapper[A]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def allFieldNames(): Seq[(String, SourceFieldMetadata)]

    Permalink

    Get a list of all the fields

    Get a list of all the fields

    returns

    a list of all the fields

    Definition Classes
    Mapper → SourceInfo
  5. def allFields: Seq[BaseField]

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

    Permalink
  7. def asHtml: NodeSeq

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def asJs: JsExp

    Permalink

    Convert the model to a JavaScript object

  10. def asValid: Box[A]

    Permalink

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

  11. def checkNames: Unit

    Permalink
  12. def clone(): AnyRef

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

    Permalink
  14. def connectionIdentifier: ConnectionIdentifier

    Permalink
  15. def connectionIdentifier(id: ConnectionIdentifier): A

    Permalink
  16. def countryField: Box[MappedCountry[A]]

    Permalink
  17. def dbCalculateConnectionIdentifier: PartialFunction[A, ConnectionIdentifier]

    Permalink
  18. def dbName: String

    Permalink
    Definition Classes
    MapperBaseMapper
  19. def db_can_delete_?: Boolean

    Permalink

    Can this model object be deleted?

  20. def delete_!: Boolean

    Permalink

    Delete the model from the RDBMS

  21. def dirty_?: Boolean

    Permalink
  22. def doPostCommit(func: () ⇒ Unit): A

    Permalink

    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

  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

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

    Permalink

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

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

    Permalink

    Given a function that takes a mapper field and returns a NodeSeq for the field, return, for this mapper instance, a set of CSS selector transforms that will transform a form for those fields into a fully-bound form that will interact with this instance.

  27. def fieldTransforms: Seq[CssSel]

    Permalink

    A list of CSS selector transforms that will help render the fields of this mapper object.

  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def findSourceField(name: String): Box[SourceFieldInfo]

    Permalink

    Given a name, look up the field

    Given a name, look up the field

    name

    the name of the field

    returns

    the metadata

    Definition Classes
    Mapper → SourceInfo
  30. def flatMapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

    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, MappedField[_, A], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

    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[MappedField[_, A]]

    Permalink

    Get the fields (in order) for displaying a form

  33. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. def htmlLine: NodeSeq

    Permalink
  36. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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]

    Permalink

    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. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
  44. final def safe_?: Boolean

    Permalink
  45. def save(): Boolean

    Permalink
    Definition Classes
    MapperBaseMapper
  46. def saveMe(): A

    Permalink

    Save the instance and return the instance

  47. def saved_?: Boolean

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

    Permalink

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

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

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

    Permalink
  51. def timeZoneField: Box[MappedTimeZone[A]]

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

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

    Permalink
  58. def validate: List[FieldError]

    Permalink
  59. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SourceInfo

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any

Ungrouped