net.liftweb.mapper

KeyedMetaMapper

trait KeyedMetaMapper [Type, A <: KeyedMapper[Type, A]] extends MetaMapper[A] with KeyedMapper[Type, A]

linear super types: KeyedMapper[Type, A], BaseKeyedMapper, MetaMapper[A], Mapper[A], BaseMapper, FieldContainer, BaseMetaMapper, AnyRef, Any
known subclasses: MetaProtoTag, MetaProtoExtendedSession, MetaMegaProtoUser, LongKeyedMetaMapper, MetaLDAPProtoUser
self type: KeyedMetaMapper[Type, A] with A with MetaMapper[A] with KeyedMapper[Type, A]
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. KeyedMetaMapper
  2. KeyedMapper
  3. BaseKeyedMapper
  4. MetaMapper
  5. Mapper
  6. BaseMapper
  7. FieldContainer
  8. BaseMetaMapper
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

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

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

    definition classes: Mapper
  4. type KeyedMapperType = A

    definition classes: KeyedMapperBaseKeyedMapper
  5. type MapperType = A

    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[KeyedMetaMapper.this.AnyBound,A,OO] with net.liftweb.mapper.MappedField[KeyedMetaMapper.this.AnyBound,A] forSome { type OO <: net.liftweb.mapper.KeyedMapper[KeyedMetaMapper.this.AnyBound,OO] }

  9. type RealType = A

    definition classes: MetaMapperBaseMetaMapper
  10. type TheKeyType = Type

    definition classes: KeyedMapperBaseKeyedMapper

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. def _dbTableNameLC : String

    The table name, to lower case.

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

    attributes: final
    definition classes: MetaMapperBaseMetaMapper
  9. def addEndStuffs (in: String, params: List[QueryParam[A]], conn: SuperConnection) : (String, Box[Long], Box[Long])

    attributes: protected
    definition classes: MetaMapper
  10. def addSnippet (xhtml: NodeSeq) : NodeSeq

    Default add snippet.

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

  11. def addSnippetCallback (obj: A) : 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

  12. def addSnippetSetup : A

    Default setup behavior for the add snippet.

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

    returns

    new mapped object

  13. object addlQueryParams extends RequestVar[List[QueryParam[A]]]

  14. def afterCommit : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  15. def afterCreate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  16. def afterDelete : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  17. def afterSave : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  18. def afterSchemifier : Unit

    definition classes: KeyedMetaMapperMetaMapperBaseMetaMapper
  19. def afterUpdate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  20. def afterValidation : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  21. def afterValidationOnCreate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  22. def afterValidationOnUpdate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  23. def allFields : Seq[BaseField]

    definition classes: MapperFieldContainer
  24. def appendField (pf: FieldPF) : Unit

    definition classes: Mapper
  25. def appendFieldToStrings (in: A) : String

    definition classes: MetaMapper
  26. def asHtml (toLine: A) : NodeSeq

    definition classes: MetaMapper
  27. def asHtml : NodeSeq

    definition classes: Mapper
  28. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  29. def asJs (actual: A) : JsExp

    definition classes: MetaMapper
  30. def asJs : JsExp

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

    definition classes: Mapper
  31. def asSafeJs (actual: A, f: KeyObfuscator) : JsExp

  32. def asSafeJs (f: KeyObfuscator) : JsExp

    definition classes: KeyedMapper
  33. def asValid : Box[A]

    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
  34. def beforeCreate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  35. def beforeDelete : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  36. def beforeSave : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  37. def beforeSchemifier : Unit

    definition classes: MetaMapperBaseMetaMapper
  38. def beforeUpdate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  39. def beforeValidation : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  40. def beforeValidationOnCreate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  41. def beforeValidationOnUpdate : List[(A) ⇒ Unit]

    definition classes: MetaMapper
  42. implicit def boundedFieldToItem (in: (MappedField[String, A], Int)) : BoundedIndexField[A]

    attributes: implicit
    definition classes: MetaMapper
  43. def buildMapper (rs: ResultSet) : List[Box[(ResultSet, Int, A) ⇒ Unit]]

    definition classes: MetaMapper
  44. def buildSelectString (fields: Seq[SelectableField], conn: SuperConnection, by: QueryParam[A]*) : (String, Box[Long], Box[Long], List[QueryParam[A]])

    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

    definition classes: MetaMapper
  45. def bulkDelete_!! (dbId: ConnectionIdentifier, by: QueryParam[A]*) : Boolean

    definition classes: MetaMapper
  46. def bulkDelete_!! (by: QueryParam[A]*) : Boolean

    definition classes: MetaMapper
  47. def checkNames : Unit

    definition classes: Mapper
  48. def clean_? (toCheck: A) : Boolean

    Returns true if none of the fields are dirty

    Returns true if none of the fields are dirty

    definition classes: MetaMapper
  49. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  50. val columnNamesForInsert : String

    definition classes: MetaMapper
  51. 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
  52. val columnQueriesForInsert : String

    definition classes: MetaMapper
  53. def comparePrimaryKeys (other: A) : Boolean

    definition classes: KeyedMapperMapper
  54. def connectionIdentifier : ConnectionIdentifier

    definition classes: Mapper
  55. def connectionIdentifier (id: ConnectionIdentifier) : A

    definition classes: Mapper
  56. def count (by: QueryParam[A]*) : Long

    definition classes: MetaMapper
  57. def count : Long

    definition classes: MetaMapper
  58. def countByInsecureSql (query: String, checkedBy: IHaveValidatedThisSQL) : Long

    definition classes: MetaMapper
  59. def countByInsecureSqlDb (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL) : Long

    definition classes: MetaMapper
  60. def countDb (dbId: ConnectionIdentifier, by: QueryParam[A]*) : Long

    definition classes: MetaMapper
  61. def countryField : Box[MappedCountry[A]]

    definition classes: Mapper
  62. def create : A

    definition classes: MetaMapper
  63. def createInstance : A

    definition classes: MetaMapper
  64. def createInstance (dbId: ConnectionIdentifier, rs: ResultSet, mapFuncs: List[Box[(ResultSet, Int, A) ⇒ Unit]]) : A

    definition classes: MetaMapper
  65. def createInstances [T] (dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long], f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  66. def createInstances (dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long]) : List[A]

    definition classes: MetaMapper
  67. 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.)

  68. 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

  69. def dbAddTable : Box[() ⇒ Unit]

    definition classes: MetaMapperBaseMetaMapper
  70. def dbCalculateConnectionIdentifier : PartialFunction[A, ConnectionIdentifier]

    definition classes: Mapper
  71. def dbDefaultConnectionIdentifier : ConnectionIdentifier

    definition classes: MetaMapper
  72. def dbIndexes : List[BaseIndex[A]]

    definition classes: MetaMapperBaseMetaMapper
  73. def dbName : String

    The name of the mapped object

    The name of the mapped object

    definition classes: MetaMapperMapperBaseMapper
  74. def dbSelectDBConnectionForFind : PartialFunction[Type, ConnectionIdentifier]

  75. def dbStringToKey (in: String) : Box[Type]

  76. 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
  77. def db_can_delete_? : Boolean

    Can this model object be deleted?

    Can this model object be deleted?

    definition classes: Mapper
  78. def decodeFromJSON_! (json: JObject, markFieldsAsDirty: Boolean) : A

    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
  79. def delete_! (toDelete: A) : Boolean

    definition classes: MetaMapper
  80. def delete_! : Boolean

    Delete the model from the RDBMS

    Delete the model from the RDBMS

    definition classes: Mapper
  81. def dirty_? (toTest: A) : Boolean

    definition classes: MetaMapper
  82. def dirty_? : Boolean

    definition classes: Mapper
  83. 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 &lt;td&gt; 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
  84. 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 &lt;th&gt; 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
  85. def doHtmlLine (toLine: A) : NodeSeq

    definition classes: MetaMapper
  86. 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

    definition classes: Mapper
  87. def editSnippet (xhtml: NodeSeq) : NodeSeq

    Default edit snippet.

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

  88. def editSnippetCallback (obj: A) : 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

  89. def editSnippetSetup : A

    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

  90. val elemName : String

    definition classes: MetaMapper
  91. def encodeAsJSON_! (toEncode: A) : 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
  92. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  93. def equals (other: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: KeyedMapper → AnyRef → Any
  94. def fieldByName [T] (fieldName: String, actual: A) : Box[MappedField[T, A]]

    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
  95. 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]

    definition classes: Mapper
  96. def fieldMapperPF (transform: (BaseOwnedMappedField[A]) ⇒ NodeSeq, actual: A) : PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    definition classes: MetaMapper
  97. def fieldMapperPF (transform: (BaseOwnedMappedField[A]) ⇒ NodeSeq) : FieldPF

    definition classes: Mapper
  98. lazy val fieldMatcher : PartialFunction[(A, String), MappedField[Any, A]]

    definition classes: MetaMapper
  99. def fieldOrder : List[BaseOwnedMappedField[A]]

    definition classes: MetaMapper
  100. def fieldPF : FieldPF

    definition classes: Mapper
  101. implicit def fieldToItem [T] (in: MappedField[T, A]) : IndexItem[A]

    attributes: implicit
    definition classes: MetaMapper
  102. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  103. def find (by: QueryParam[A]*) : Box[A]

  104. def find (dbId: ConnectionIdentifier, key: String) : Box[A]

  105. def find (key: String) : Box[A]

  106. def find (key: List[String]) : Box[A]

    Find the element based on the first element of the List

    Find the element based on the first element of the List

  107. def find (key: Any) : Box[A]

  108. def findAll (by: QueryParam[A]*) : List[A]

    definition classes: MetaMapper
  109. def findAll () : List[A]

    definition classes: MetaMapper
  110. def findAllByInsecureSql (query: String, checkedBy: IHaveValidatedThisSQL) : List[A]

    definition classes: MetaMapper
  111. def findAllByInsecureSqlDb (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL) : List[A]

    definition classes: MetaMapper
  112. def findAllByPreparedStatement (dbId: ConnectionIdentifier, stmt: PreparedStatement) : List[A]

    definition classes: MetaMapper
  113. def findAllByPreparedStatement (f: (SuperConnection) ⇒ PreparedStatement) : List[A]

    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
  114. def findAllByPreparedStatementDb [T] (dbId: ConnectionIdentifier, stmt: PreparedStatement)(f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  115. def findAllDb (dbId: ConnectionIdentifier, by: QueryParam[A]*) : List[A]

    definition classes: MetaMapper
  116. def findAllDb (dbId: ConnectionIdentifier) : List[A]

    definition classes: MetaMapper
  117. def findAllFields (fields: Seq[SelectableField], by: QueryParam[A]*) : List[A]

    definition classes: MetaMapper
  118. def findAllFieldsDb (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[A]*) : List[A]

    definition classes: MetaMapper
  119. def findApplier (name: String, inst: AnyRef) : Box[(A, AnyRef) ⇒ Unit]

    attributes: protected
    definition classes: MetaMapper
  120. def findByKey (key: Type) : Box[A]

  121. def findDb (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[A]*) : Box[A]

  122. def findDb (dbId: ConnectionIdentifier, by: QueryParam[A]*) : Box[A]

  123. def findDb (dbId: ConnectionIdentifier, key: Any) : Box[A]

  124. def findDbByKey (dbId: ConnectionIdentifier, fields: Seq[SelectableField], key: Type) : Box[A]

  125. def findDbByKey (dbId: ConnectionIdentifier, key: Type) : Box[A]

  126. def findMap [T] (by: QueryParam[A]*)(f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  127. def findMapByInsecureSql [T] (query: String, checkedBy: IHaveValidatedThisSQL)(f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  128. def findMapByInsecureSqlDb [T] (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL)(f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  129. def findMapDb [T] (dbId: ConnectionIdentifier, by: QueryParam[A]*)(f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  130. def findMapFieldDb [T] (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[A]*)(f: (A) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  131. def findOrCreate (key: List[String]) : A

    Find an element by primary key or create a new one

    Find an element by primary key or create a new one

  132. def findOrCreate (key: Any) : A

    Find an element by primary key or create a new one

    Find an element by primary key or create a new one

  133. def flatMapFieldTitleForm [T] (toMap: A, 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: A, 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

    definition classes: MetaMapper
  136. 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

    definition classes: Mapper
  137. def formFields (toMap: A) : List[net.liftweb.mapper.MappedField[_, A]]

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

    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 ( &lt;tr&gt; ) 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: A, protoField: BaseOwnedMappedField[A]) : BaseOwnedMappedField[A]

    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: A, protoField: MappedField[T, A]) : MappedField[T, A]

    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. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  144. def getSingleton : KeyedMetaMapper[Type, A]

    attributes: abstract
    definition classes: KeyedMapperMapper
  145. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: KeyedMapper → AnyRef → Any
  146. def htmlHeaders : NodeSeq

    definition classes: MetaMapper
  147. def htmlLine : NodeSeq

    definition classes: Mapper
  148. def indexedField (toSave: A) : Box[MappedField[Any, A]]

    definition classes: MetaMapper
  149. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  150. def localeField : Box[MappedLocale[A]]

    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
  151. def mapFieldTitleForm [T] (toMap: A, 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
  152. 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
  153. lazy val mappedFields : Seq[BaseMappedField]

    definition classes: MetaMapperBaseMetaMapper
  154. lazy val mappedFieldsForModel : List[net.liftweb.mapper.MappedField[_, A]]

    definition classes: MetaMapper
  155. def modSnippet (xhtml: NodeSeq, obj: A, cleanup: (A) ⇒ Unit) : NodeSeq

    Default snippet for modification.

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

  156. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  157. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  158. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  159. def objFromIndexedParam : Box[A]

    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.

  160. def prependField (pf: FieldPF) : Unit

    definition classes: Mapper
  161. def primaryKeyField : MappedField[Type, A] with IndexedField[Type]

    attributes: abstract
    definition classes: KeyedMapperBaseKeyedMapper
  162. def reload : A

    definition classes: KeyedMapper
  163. val rootClass : java.lang.Class[_ >: ?0]

    attributes: protected
    definition classes: MetaMapper
  164. def runSafe [T] (f: ⇒ T) : T

    definition classes: Mapper
  165. def runValidationList (toValidate: A) : 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
  166. def safe_? : Boolean

    attributes: final
    definition classes: Mapper
  167. def save (toSave: A) : Boolean

    definition classes: MetaMapper
  168. def save () : Boolean

    definition classes: MapperBaseMapper
  169. def saveMe () : A

    Save the instance and return the instance

    Save the instance and return the instance

    definition classes: Mapper
  170. def saved_? (toSave: A) : Boolean

    definition classes: MetaMapper
  171. def saved_? : Boolean

    definition classes: Mapper
  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. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  174. implicit def thisToMappee (in: Mapper[A]) : A

    attributes: implicit
    definition classes: Mapper
  175. def timeZoneField : Box[MappedTimeZone[A]]

    definition classes: Mapper
  176. def toForm (toMap: A) : NodeSeq

    definition classes: MetaMapper
  177. def toForm (button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (A) ⇒ Unit) : NodeSeq

    definition classes: Mapper
  178. 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

    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: A) : 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

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: Mapper → AnyRef → Any
  183. def toXml (what: A) : Elem

    definition classes: MetaMapper
  184. def toXml : Elem

    definition classes: Mapper
  185. def unapply (key: Any) : Option[A]

  186. def updateFromJSON_! (toUpdate: A, json: JObject) : A

    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. def validate (toValidate: A) : List[FieldError]

    attributes: final
    definition classes: MetaMapper
  188. def validate : List[FieldError]

    definition classes: Mapper
  189. def validation : List[(A) ⇒ 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.

  191. def viewSnippetSetup : A

    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

  192. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  193. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  194. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  195. def whatToSet (toSave: A) : String

    definition classes: MetaMapper

Inherited from KeyedMapper[Type, A]

Inherited from BaseKeyedMapper

Inherited from MetaMapper[A]

Inherited from Mapper[A]

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from BaseMetaMapper

Inherited from AnyRef

Inherited from Any