net.liftweb.mapper

MetaProtoTag

trait MetaProtoTag[ModelType <: ProtoTag[ModelType]] extends KeyedMetaMapper[Long, ModelType]

Self Type
MetaProtoTag[ModelType] with ModelType
Linear Supertypes
KeyedMetaMapper[Long, ModelType], KeyedMapper[Long, ModelType], BaseKeyedMapper, MetaMapper[ModelType], Mapper[ModelType], Serializable, Serializable, BaseMapper, FieldContainer, BaseMetaMapper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MetaProtoTag
  2. KeyedMetaMapper
  3. KeyedMapper
  4. BaseKeyedMapper
  5. MetaMapper
  6. Mapper
  7. Serializable
  8. Serializable
  9. BaseMapper
  10. FieldContainer
  11. BaseMetaMapper
  12. AnyRef
  13. Any
Visibility
  1. Public
  2. All

Type Members

  1. type AnyBound = T forSome { type T }

    Definition Classes
    MetaMapper
  2. case class FieldHolder(name: String, method: Method, field: net.liftweb.mapper.MappedField[_, A]) extends Product with Serializable

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

    Definition Classes
    Mapper
  4. type KeyedMapperType = ModelType

    Definition Classes
    KeyedMapperBaseKeyedMapper
  5. type MapperType = ModelType

    Definition Classes
    MapperBaseMapper
  6. type OtherMapper = net.liftweb.mapper.KeyedMapper[_, _]

    Definition Classes
    MetaMapper
  7. type OtherMetaMapper = net.liftweb.mapper.KeyedMetaMapper[_, _]

    Definition Classes
    MetaMapper
  8. type Q = net.liftweb.mapper.MappedForeignKey[MetaProtoTag.this.AnyBound,ModelType,OO] with net.liftweb.mapper.MappedField[MetaProtoTag.this.AnyBound,ModelType] forSome { type OO <: net.liftweb.mapper.KeyedMapper[MetaProtoTag.this.AnyBound,OO] }

    Definition Classes
    KeyedMetaMapper
  9. type RealType = ModelType

    Definition Classes
    MetaMapperBaseMetaMapper
  10. type TheKeyType = Long

    Definition Classes
    KeyedMapperBaseKeyedMapper

Abstract Value Members

  1. abstract def cacheSize: Int

  2. abstract def getSingleton: KeyedMetaMapper[Long, ModelType]

    Definition Classes
    KeyedMapperMapper
  3. abstract def primaryKeyField: MappedField[Long, ModelType] with IndexedField[Long]

    Definition Classes
    KeyedMapperBaseKeyedMapper

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. final def _dbTableNameLC: String

    The table name, to lower case.

    The table name, to lower case... ensures that it works on all DBs

    Definition Classes
    MetaMapperBaseMetaMapper
  7. def addEndStuffs(in: String, params: List[QueryParam[ModelType]], conn: SuperConnection): (String, Box[Long], Box[Long])

    Attributes
    protected
    Definition Classes
    MetaMapper
  8. def addSnippet(xhtml: NodeSeq): NodeSeq

    Default add snippet.

    Default add snippet. Override to change behavior of the add snippet.

    Definition Classes
    KeyedMetaMapper
  9. def addSnippetCallback(obj: ModelType): Unit

    Default callback behavior of the add snippet.

    Default callback behavior of the add snippet. Called when the user presses submit. Saves the passed in object.

    obj

    mapped object of this metamapper's type

    Definition Classes
    KeyedMetaMapper
  10. def addSnippetSetup: ModelType

    Default setup behavior for the add snippet.

    Default setup behavior for the add snippet. Creates a new mapped object.

    returns

    new mapped object

    Definition Classes
    KeyedMetaMapper
  11. object addlQueryParams extends RequestVar[List[QueryParam[A]]]

  12. def afterCommit: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  13. def afterCreate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  14. def afterDelete: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  15. def afterSave: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  16. def afterSchemifier: Unit

    Definition Classes
    KeyedMetaMapperMetaMapperBaseMetaMapper
  17. def afterUpdate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  18. def afterValidation: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  19. def afterValidationOnCreate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  20. def afterValidationOnUpdate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  21. def allFields: Seq[BaseField]

    Definition Classes
    MapperFieldContainer
  22. def appendField(pf: FieldPF): Unit

    Definition Classes
    Mapper
  23. def appendFieldToStrings(in: ModelType): String

    Definition Classes
    MetaMapper
  24. def asHtml(toLine: ModelType): NodeSeq

    Definition Classes
    MetaMapper
  25. def asHtml: NodeSeq

    Definition Classes
    Mapper
  26. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  27. def asJs(actual: ModelType): JsExp

    Definition Classes
    MetaMapper
  28. def asJs: JsExp

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

    Definition Classes
    Mapper
  29. def asSafeJs(actual: ModelType, f: KeyObfuscator): JsExp

    Definition Classes
    KeyedMetaMapper
  30. def asSafeJs(f: KeyObfuscator): JsExp

    Definition Classes
    KeyedMapper
  31. def asValid: Box[ModelType]

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

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

    Definition Classes
    Mapper
  32. def beforeCreate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  33. def beforeDelete: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  34. def beforeSave: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  35. def beforeSchemifier: Unit

    Definition Classes
    MetaMapperBaseMetaMapper
  36. def beforeUpdate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  37. def beforeValidation: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  38. def beforeValidationOnCreate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  39. def beforeValidationOnUpdate: List[(ModelType) ⇒ Unit]

    Definition Classes
    MetaMapper
  40. implicit def boundedFieldToItem(in: (MappedField[String, ModelType], Int)): BoundedIndexField[ModelType]

    Definition Classes
    MetaMapper
  41. def buildMapper(rs: ResultSet): List[Box[(ResultSet, Int, ModelType) ⇒ Unit]]

    Definition Classes
    MetaMapper
  42. def buildSelectString(fields: Seq[SelectableField], conn: SuperConnection, by: QueryParam[ModelType]*): (String, Box[Long], Box[Long], List[QueryParam[ModelType]])

    Given fields, a connection and the query parameters, build a query and return the query String, and Start or MaxRows values (depending on whether the driver supports LIMIT and OFFSET) and the complete List of QueryParams based on any synthetic query parameters calculated during the query creation.

    Given fields, a connection and the query parameters, build a query and return the query String, and Start or MaxRows values (depending on whether the driver supports LIMIT and OFFSET) and the complete List of QueryParams based on any synthetic query parameters calculated during the query creation.

    fields

    -- a Seq of the fields to be selected

    conn

    -- the SuperConnection to be used for calculating the query

    by

    -- the varg of QueryParams

    returns

    a Tuple of the Query String, Start (offset), MaxRows (limit), and the list of all query parameters including and synthetic query parameters

    Definition Classes
    MetaMapper
  43. def bulkDelete_!!(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): Boolean

    Definition Classes
    MetaMapper
  44. def bulkDelete_!!(by: QueryParam[ModelType]*): Boolean

    Definition Classes
    MetaMapper
  45. def capify: (String) ⇒ String

  46. def checkNames: Unit

    Definition Classes
    Mapper
  47. def clean_?(toCheck: ModelType): Boolean

    Returns true if none of the fields are dirty

    Returns true if none of the fields are dirty

    Definition Classes
    MetaMapper
  48. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. val columnNamesForInsert: String

    Definition Classes
    MetaMapper
  50. def columnPrimaryKey_?(name: String): Boolean

    This method returns true if the named column is the primary key and it is autogenerated

    This method returns true if the named column is the primary key and it is autogenerated

    Definition Classes
    MetaMapper
  51. val columnQueriesForInsert: String

    Definition Classes
    MetaMapper
  52. def comparePrimaryKeys(other: ModelType): Boolean

    Definition Classes
    KeyedMapperMapper
  53. def connectionIdentifier: ConnectionIdentifier

    Definition Classes
    Mapper
  54. def connectionIdentifier(id: ConnectionIdentifier): ModelType

    Definition Classes
    Mapper
  55. def count(by: QueryParam[ModelType]*): Long

    Definition Classes
    MetaMapper
  56. def count: Long

    Definition Classes
    MetaMapper
  57. def countByInsecureSql(query: String, checkedBy: IHaveValidatedThisSQL): Long

    Definition Classes
    MetaMapper
  58. def countByInsecureSqlDb(dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL): Long

    Definition Classes
    MetaMapper
  59. def countDb(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): Long

    Definition Classes
    MetaMapper
  60. def countryField: Box[MappedCountry[ModelType]]

    Definition Classes
    Mapper
  61. def create: ModelType

    Definition Classes
    MetaMapper
  62. def createInstance: ModelType

    Definition Classes
    MetaMapper
  63. def createInstance(dbId: ConnectionIdentifier, rs: ResultSet, mapFuncs: List[Box[(ResultSet, Int, ModelType) ⇒ Unit]]): ModelType

    Definition Classes
    MetaMapper
  64. def createInstances[T](dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long], f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  65. def createInstances(dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long]): List[ModelType]

    Definition Classes
    MetaMapper
  66. def crudSnippets: SnippetPF

    Defines the default CRUD snippets.

    Defines the default CRUD snippets. Override if you want to change the names of the snippets. Defaults are "add", "edit", and "view".

    (No, there's no D in CRUD.)

    Definition Classes
    KeyedMetaMapper
  67. def crudSnippets_?: Boolean

    Override this definition in your model to enable CRUD snippets for that model.

    Override this definition in your model to enable CRUD snippets for that model. Set to false by default.

    Remember to override editSnippetSetup and viewSnippetSetup as well, as the defaults are broken.

    returns

    false

    Definition Classes
    KeyedMetaMapper
  68. def dbAddTable: Box[() ⇒ Unit]

    Definition Classes
    MetaMapperBaseMetaMapper
  69. def dbCalculateConnectionIdentifier: PartialFunction[ModelType, ConnectionIdentifier]

    Definition Classes
    Mapper
  70. def dbDefaultConnectionIdentifier: ConnectionIdentifier

    Definition Classes
    MetaMapper
  71. def dbIndexes: List[BaseIndex[ModelType]]

    Definition Classes
    MetaMapperBaseMetaMapper
  72. def dbName: String

    The name of the mapped object

    The name of the mapped object

    Definition Classes
    MetaMapperMapperBaseMapper
  73. def dbSelectDBConnectionForFind: PartialFunction[Long, ConnectionIdentifier]

    Definition Classes
    KeyedMetaMapper
  74. def dbStringToKey(in: String): Box[Long]

    Definition Classes
    KeyedMetaMapper
  75. def dbTableName: String

    The name of the database table.

    The name of the database table. Override this method if you want to change the table to something other than the name of the Mapper class

    Definition Classes
    MetaMapperBaseMetaMapper
  76. def db_can_delete_?: Boolean

    Can this model object be deleted?

    Can this model object be deleted?

    Definition Classes
    Mapper
  77. def decodeFromJSON_!(json: JObject, markFieldsAsDirty: Boolean): ModelType

    Decode the fields from a JSON Object.

    Decode the fields from a JSON Object. Should the fields be marked as dirty?

    Attributes
    protected
    Definition Classes
    MetaMapper
  78. def delete_!(toDelete: ModelType): Boolean

    Definition Classes
    MetaMapper
  79. def delete_!: Boolean

    Delete the model from the RDBMS

    Delete the model from the RDBMS

    Definition Classes
    Mapper
  80. def dirty_?(toTest: ModelType): Boolean

    Definition Classes
    MetaMapper
  81. def dirty_?: Boolean

    Definition Classes
    Mapper
  82. var displayFieldAsLineElement: (NodeSeq) ⇒ NodeSeq

    This function converts an element into the appropriate XHTML format for displaying across a line formatted block.

    This function converts an element into the appropriate XHTML format for displaying across a line formatted block. The default is <td> for use in XHTML tables. If you change this function, the change will be used for this MetaMapper unless you override the doHtmlLine method.

    Definition Classes
    MetaMapper
  83. var displayNameToHeaderElement: (String) ⇒ NodeSeq

    This function converts a header name into the appropriate XHTML format for displaying across the headers of a formatted block.

    This function converts a header name into the appropriate XHTML format for displaying across the headers of a formatted block. The default is <th> for use in XHTML tables. If you change this function, the change will be used for this MetaMapper unless you override the htmlHeades method

    Definition Classes
    MetaMapper
  84. def doHtmlLine(toLine: ModelType): NodeSeq

    Definition Classes
    MetaMapper
  85. def doPostCommit(func: () ⇒ Unit): ModelType

    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

    Definition Classes
    Mapper
  86. def editSnippet(xhtml: NodeSeq): NodeSeq

    Default edit snippet.

    Default edit snippet. Override to change behavior of the edit snippet.

    Definition Classes
    KeyedMetaMapper
  87. def editSnippetCallback(obj: ModelType): Unit

    Default callback behavior of the edit snippet.

    Default callback behavior of the edit snippet. Called when the user presses submit. Saves the passed in object.

    obj

    mapped object of this metamapper's type

    Definition Classes
    KeyedMetaMapper
  88. def editSnippetSetup: ModelType

    Default setup behavior for the edit snippet.

    Default setup behavior for the edit snippet. BROKEN! MUST OVERRIDE IF USING CRUD SNIPPETS!

    returns

    a mapped object of this metamapper's type

    Definition Classes
    KeyedMetaMapper
  89. val elemName: String

    Definition Classes
    MetaMapper
  90. def encodeAsJSON_!(toEncode: ModelType): JObject

    This method will encode the instance as JSON.

    This method will encode the instance as JSON. It may reveal data in fields that might otherwise be proprietary. It should be used with caution and only exposed as a public method after a security review.

    Attributes
    protected
    Definition Classes
    MetaMapper
  91. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  92. def equals(other: Any): Boolean

    Definition Classes
    KeyedMapper → AnyRef → Any
  93. def fieldByName[T](fieldName: String, actual: ModelType): Box[MappedField[T, ModelType]]

    Get a field by the field name

    Get a field by the field name

    fieldName

    -- the name of the field to get

    actual

    -- the instance to get the field on

    returns

    Box[The Field] (Empty if the field is not found)

    Definition Classes
    MetaMapper
  94. def fieldByName[T](fieldName: String): Box[MappedField[T, ModelType]]

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

    Definition Classes
    Mapper
  95. def fieldMapperPF(transform: (BaseOwnedMappedField[ModelType]) ⇒ NodeSeq, actual: ModelType): PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Definition Classes
    MetaMapper
  96. def fieldMapperPF(transform: (BaseOwnedMappedField[ModelType]) ⇒ NodeSeq): FieldPF

    Definition Classes
    Mapper
  97. lazy val fieldMatcher: PartialFunction[(ModelType, String), MappedField[Any, ModelType]]

    A partial function that takes an instance of A and a field name and returns the mapped field

    A partial function that takes an instance of A and a field name and returns the mapped field

    Definition Classes
    MetaMapper
  98. def fieldOrder: List[BaseOwnedMappedField[ModelType]]

    Definition Classes
    MetaMapper
  99. def fieldPF: FieldPF

    Definition Classes
    Mapper
  100. implicit def fieldToItem[T](in: MappedField[T, ModelType]): IndexItem[ModelType]

    Definition Classes
    MetaMapper
  101. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  102. def find(by: QueryParam[ModelType]*): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  103. def find(dbId: ConnectionIdentifier, key: String): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  104. def find(key: String): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  105. def find(key: List[String]): Box[ModelType]

    Find the element based on the first element of the List

    Find the element based on the first element of the List

    Definition Classes
    KeyedMetaMapper
  106. def find(key: Any): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  107. def findAll(by: QueryParam[ModelType]*): List[ModelType]

    Definition Classes
    MetaMapper
  108. def findAll(): List[ModelType]

    Definition Classes
    MetaMapper
  109. def findAllByInsecureSql(query: String, checkedBy: IHaveValidatedThisSQL): List[ModelType]

    Definition Classes
    MetaMapper
  110. def findAllByInsecureSqlDb(dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL): List[ModelType]

    Definition Classes
    MetaMapper
  111. def findAllByPreparedStatement(dbId: ConnectionIdentifier, stmt: PreparedStatement): List[ModelType]

    Definition Classes
    MetaMapper
  112. def findAllByPreparedStatement(f: (SuperConnection) ⇒ PreparedStatement): List[ModelType]

    Execute a PreparedStatement and return a List of Mapper instances.

    Execute a PreparedStatement and return a List of Mapper instances. f is where the user will do the work of creating the PreparedStatement and preparing it for execution.

    f

    A function that takes a SuperConnection and returns a PreparedStatement.

    returns

    A List of Mapper instances.

    Definition Classes
    MetaMapper
  113. def findAllByPreparedStatementDb[T](dbId: ConnectionIdentifier, stmt: PreparedStatement)(f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  114. def findAllDb(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): List[ModelType]

    Definition Classes
    MetaMapper
  115. def findAllDb(dbId: ConnectionIdentifier): List[ModelType]

    Definition Classes
    MetaMapper
  116. def findAllFields(fields: Seq[SelectableField], by: QueryParam[ModelType]*): List[ModelType]

    Definition Classes
    MetaMapper
  117. def findAllFieldsDb(dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*): List[ModelType]

    Definition Classes
    MetaMapper
  118. def findApplier(name: String, inst: AnyRef): Box[(ModelType, AnyRef) ⇒ Unit]

    Attributes
    protected
    Definition Classes
    MetaMapper
  119. def findByKey(key: Long): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  120. def findDb(dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  121. def findDb(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  122. def findDb(dbId: ConnectionIdentifier, key: Any): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  123. def findDbByKey(dbId: ConnectionIdentifier, key: Long): Box[ModelType]

    Definition Classes
    MetaProtoTagKeyedMetaMapper
  124. def findDbByKey(dbId: ConnectionIdentifier, fields: Seq[SelectableField], key: Long): Box[ModelType]

    Definition Classes
    KeyedMetaMapper
  125. def findMap[T](by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  126. def findMapByInsecureSql[T](query: String, checkedBy: IHaveValidatedThisSQL)(f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  127. def findMapByInsecureSqlDb[T](dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL)(f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  128. def findMapDb[T](dbId: ConnectionIdentifier, by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  129. def findMapFieldDb[T](dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]): List[T]

    Definition Classes
    MetaMapper
  130. def findOrCreate(ntag: String): ModelType

  131. def findOrCreate(key: List[String]): ModelType

    Find an element by primary key or create a new one

    Find an element by primary key or create a new one

    Definition Classes
    KeyedMetaMapper
  132. def findOrCreate(key: Any): ModelType

    Find an element by primary key or create a new one

    Find an element by primary key or create a new one

    Definition Classes
    KeyedMetaMapper
  133. def flatMapFieldTitleForm[T](toMap: ModelType, 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

    Definition Classes
    MetaMapper
  134. 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

    Definition Classes
    Mapper
  135. def flatMapFieldTitleForm2[T](toMap: ModelType, func: (NodeSeq, net.liftweb.mapper.MappedField[_, ModelType], 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

    Definition Classes
    MetaMapper
  136. def flatMapFieldTitleForm2[T](func: (NodeSeq, net.liftweb.mapper.MappedField[_, ModelType], 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

    Definition Classes
    Mapper
  137. def formFields(toMap: ModelType): List[net.liftweb.mapper.MappedField[_, ModelType]]

    Get the fields (in order) for displaying a form

    Get the fields (in order) for displaying a form

    Definition Classes
    MetaMapper
  138. def formFields: List[net.liftweb.mapper.MappedField[_, ModelType]]

    Get the fields (in order) for displaying a form

    Get the fields (in order) for displaying a form

    Definition Classes
    Mapper
  139. var formatFormElement: (NodeSeq, NodeSeq) ⇒ NodeSeq

    This function converts a name and form for a given field in the model to XHTML for presentation in the browser.

    This function converts a name and form for a given field in the model to XHTML for presentation in the browser. By default, a table row ( <tr> ) is presented, but you can change the function to display something else.

    Definition Classes
    MetaMapper
  140. def formatFormLine(displayName: NodeSeq, form: NodeSeq): NodeSeq

    Definition Classes
    MetaMapper
  141. def getActualBaseField(actual: ModelType, protoField: BaseOwnedMappedField[ModelType]): BaseOwnedMappedField[ModelType]

    Given the prototype field (the field on the Singleton), get the field from the instance

    Given the prototype field (the field on the Singleton), get the field from the instance

    actual

    -- the Mapper instance

    protoField

    -- the field from the MetaMapper (Singleton)

    returns

    the field from the actual object

    Definition Classes
    MetaMapper
  142. def getActualField[T](actual: ModelType, protoField: MappedField[T, ModelType]): MappedField[T, ModelType]

    Given the prototype field (the field on the Singleton), get the field from the instance

    Given the prototype field (the field on the Singleton), get the field from the instance

    actual

    -- the Mapper instance

    protoField

    -- the field from the MetaMapper (Singleton)

    returns

    the field from the actual object

    Definition Classes
    MetaMapper
  143. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    KeyedMapper → AnyRef → Any
  145. def htmlHeaders: NodeSeq

    Definition Classes
    MetaMapper
  146. def htmlLine: NodeSeq

    Definition Classes
    Mapper
  147. def indexedField(toSave: ModelType): Box[MappedField[Any, ModelType]]

    Definition Classes
    MetaMapper
  148. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  149. def localeField: Box[MappedLocale[ModelType]]

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

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

    Definition Classes
    Mapper
  150. def mapFieldTitleForm[T](toMap: ModelType, 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

    Definition Classes
    MetaMapper
  151. 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

    Definition Classes
    Mapper
  152. lazy val mappedFields: Seq[BaseMappedField]

    The mapped fields

    The mapped fields

    Definition Classes
    MetaMapperBaseMetaMapper
  153. lazy val mappedFieldsForModel: List[net.liftweb.mapper.MappedField[_, ModelType]]

    the mapped fields as MappedField rather than BaseMappedField

    the mapped fields as MappedField rather than BaseMappedField

    Definition Classes
    MetaMapper
  154. def modSnippet(xhtml: NodeSeq, obj: ModelType, cleanup: (ModelType) ⇒ Unit): NodeSeq

    Default snippet for modification.

    Default snippet for modification. Used by the default add and edit snippets.

    Definition Classes
    KeyedMetaMapper
  155. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  156. final def notify(): Unit

    Definition Classes
    AnyRef
  157. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  158. def objFromIndexedParam: Box[ModelType]

    Lame attempt at automatically getting an object from the HTTP parameters.

    Lame attempt at automatically getting an object from the HTTP parameters. BROKEN! DO NOT USE! Only here so that existing sub-classes KeyedMetaMapper don't have to implement new methods when I commit the CRUD snippets code.

    Definition Classes
    KeyedMetaMapper
  159. def prependField(pf: FieldPF): Unit

    Definition Classes
    Mapper
  160. def reload: ModelType

    Definition Classes
    KeyedMapper
  161. val rootClass: java.lang.Class[_ >: ?0]

    Attributes
    protected
    Definition Classes
    MetaMapper
  162. def runSafe[T](f: ⇒ T): T

    Definition Classes
    Mapper
  163. def runValidationList(toValidate: ModelType): List[FieldError]

    Run the list of field validations, etc.

    Run the list of field validations, etc. This is the raw validation, without the notifications. This method can be over-ridden.

    Attributes
    protected
    Definition Classes
    MetaMapper
  164. final def safe_?: Boolean

    Definition Classes
    Mapper
  165. def save(toSave: ModelType): Boolean

    Definition Classes
    MetaMapper
  166. def save(): Boolean

    Definition Classes
    MapperBaseMapper
  167. def saveMe(): ModelType

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    Mapper
  168. def saved_?(toSave: ModelType): Boolean

    Definition Classes
    MetaMapper
  169. def saved_?: Boolean

    Definition Classes
    Mapper
  170. def split(in: String): List[String]

    Split the String into tags

  171. def splitAndFind(in: String): List[ModelType]

    Split the String into tags and find all the tags

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

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

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

    Definition Classes
    Mapper
  173. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  174. implicit def thisToMappee(in: Mapper[ModelType]): ModelType

    Definition Classes
    Mapper
  175. def timeZoneField: Box[MappedTimeZone[ModelType]]

    Definition Classes
    Mapper
  176. def toForm(toMap: ModelType): NodeSeq

    Definition Classes
    MetaMapper
  177. def toForm(button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (ModelType) ⇒ Unit): NodeSeq

    Definition Classes
    Mapper
  178. def toForm(button: Box[String], f: (ModelType) ⇒ 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

    Definition Classes
    Mapper
  179. 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

    Definition Classes
    Mapper
  180. def toHtml(toMap: ModelType): 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

    toMap

    the instance to generate the HTML for

    returns

    the html view of the model

    Definition Classes
    MetaMapper
  181. 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

    Definition Classes
    Mapper
  182. def toString(): String

    Definition Classes
    Mapper → AnyRef → Any
  183. def toXml(what: ModelType): Elem

    Definition Classes
    MetaMapper
  184. def toXml: Elem

    Definition Classes
    Mapper
  185. def unapply(key: Any): Option[ModelType]

    Definition Classes
    KeyedMetaMapper
  186. def updateFromJSON_!(toUpdate: ModelType, json: JObject): ModelType

    This method will update the instance from JSON.

    This method will update the instance from JSON. It allows for attacks from untrusted JSON as it bypasses normal security. By default, the method is protected. You can write a proxy method to expose the functionality.

    Attributes
    protected
    Definition Classes
    MetaMapper
  187. final def validate(toValidate: ModelType): List[FieldError]

    Definition Classes
    MetaMapper
  188. def validate: List[FieldError]

    Definition Classes
    Mapper
  189. def validation: List[(ModelType) ⇒ List[FieldError]]

    If there are model-specific validations to perform, override this method and return an additional list of validations to perform

    If there are model-specific validations to perform, override this method and return an additional list of validations to perform

    Definition Classes
    MetaMapper
  190. def viewSnippet(xhtml: NodeSeq): NodeSeq

    Default view snippet.

    Default view snippet. Override to change behavior of the view snippet.

    Definition Classes
    KeyedMetaMapper
  191. def viewSnippetSetup: ModelType

    Default setup behavior for the view snippet.

    Default setup behavior for the view snippet. BROKEN! MUST OVERRIDE IF USING CRUD SNIPPETS!

    returns

    a mapped object of this metamapper's type

    Definition Classes
    KeyedMetaMapper
  192. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  195. def whatToSet(toSave: ModelType): String

    Definition Classes
    MetaMapper

Inherited from KeyedMetaMapper[Long, ModelType]

Inherited from KeyedMapper[Long, ModelType]

Inherited from BaseKeyedMapper

Inherited from MetaMapper[ModelType]

Inherited from Mapper[ModelType]

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from BaseMetaMapper

Inherited from AnyRef

Inherited from Any