net.liftweb.mapper

MetaMapper

trait MetaMapper [A <: Mapper[A]] extends BaseMetaMapper with Mapper[A]

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

Type Members

  1. type AnyBound = T forSome { type T }

  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 MapperType = A

    definition classes: MapperBaseMapper
  5. type OtherMapper = net.liftweb.mapper.KeyedMapper[_, _]

  6. type OtherMetaMapper = net.liftweb.mapper.KeyedMetaMapper[_, _]

  7. type RealType = A

    definition classes: MetaMapperBaseMetaMapper

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
  10. object addlQueryParams extends RequestVar[List[QueryParam[A]]]

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

  12. def afterCreate : List[(A) ⇒ Unit]

  13. def afterDelete : List[(A) ⇒ Unit]

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

  15. def afterSchemifier : Unit

    definition classes: MetaMapperBaseMetaMapper
  16. def afterUpdate : List[(A) ⇒ Unit]

  17. def afterValidation : List[(A) ⇒ Unit]

  18. def afterValidationOnCreate : List[(A) ⇒ Unit]

  19. def afterValidationOnUpdate : List[(A) ⇒ Unit]

  20. def allFields : Seq[BaseField]

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

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

  23. def asHtml (toLine: A) : NodeSeq

  24. def asHtml : NodeSeq

    definition classes: Mapper
  25. 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
  26. def asJs (actual: A) : JsExp

  27. def asJs : JsExp

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

    definition classes: Mapper
  28. 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
  29. def beforeCreate : List[(A) ⇒ Unit]

  30. def beforeDelete : List[(A) ⇒ Unit]

  31. def beforeSave : List[(A) ⇒ Unit]

  32. def beforeSchemifier : Unit

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

  34. def beforeValidation : List[(A) ⇒ Unit]

  35. def beforeValidationOnCreate : List[(A) ⇒ Unit]

  36. def beforeValidationOnUpdate : List[(A) ⇒ Unit]

  37. implicit def boundedFieldToItem (in: (MappedField[String, A], Int)) : BoundedIndexField[A]

    attributes: implicit
  38. def buildMapper (rs: ResultSet) : List[Box[(ResultSet, Int, A) ⇒ Unit]]

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

  40. def bulkDelete_!! (dbId: ConnectionIdentifier, by: QueryParam[A]*) : Boolean

  41. def bulkDelete_!! (by: QueryParam[A]*) : Boolean

  42. def checkNames : Unit

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

    Returns true if none of the fields are dirty

    Returns true if none of the fields are dirty

  44. 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
  45. val columnNamesForInsert : String

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

  47. val columnQueriesForInsert : String

  48. def comparePrimaryKeys (other: A) : Boolean

    definition classes: Mapper
  49. def connectionIdentifier : ConnectionIdentifier

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

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

  52. def count : Long

  53. def countByInsecureSql (query: String, checkedBy: IHaveValidatedThisSQL) : Long

  54. def countByInsecureSqlDb (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL) : Long

  55. def countDb (dbId: ConnectionIdentifier, by: QueryParam[A]*) : Long

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

    definition classes: Mapper
  57. def create : A

  58. def createInstance : A

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

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

  61. def createInstances (dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long]) : List[A]

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

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

    definition classes: Mapper
  64. def dbDefaultConnectionIdentifier : ConnectionIdentifier

  65. def dbIndexes : List[BaseIndex[A]]

    definition classes: MetaMapperBaseMetaMapper
  66. def dbName : String

    The name of the mapped object

    The name of the mapped object

    definition classes: MetaMapperMapperBaseMapper
  67. 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
  68. def db_can_delete_? : Boolean

    Can this model object be deleted?

    Can this model object be deleted?

    definition classes: Mapper
  69. 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
  70. def delete_! (toDelete: A) : Boolean

  71. def delete_! : Boolean

    Delete the model from the RDBMS

    Delete the model from the RDBMS

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

  73. def dirty_? : Boolean

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

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

  76. def doHtmlLine (toLine: A) : NodeSeq

  77. 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
  78. val elemName : String

  79. 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
  80. 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
  81. def equals (arg0: 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)).

    arg0

    the object to compare against this object for equality.

    returns

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

    definition classes: AnyRef → Any
  82. 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)

  83. 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
  84. def fieldMapperPF (transform: (BaseOwnedMappedField[A]) ⇒ NodeSeq, actual: A) : PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

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

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

  87. def fieldOrder : List[BaseOwnedMappedField[A]]

  88. def fieldPF : FieldPF

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

    attributes: implicit
  90. 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
  91. def findAll (by: QueryParam[A]*) : List[A]

  92. def findAll () : List[A]

  93. def findAllByInsecureSql (query: String, checkedBy: IHaveValidatedThisSQL) : List[A]

  94. def findAllByInsecureSqlDb (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL) : List[A]

  95. def findAllByPreparedStatement (dbId: ConnectionIdentifier, stmt: PreparedStatement) : List[A]

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

  97. def findAllByPreparedStatementDb [T] (dbId: ConnectionIdentifier, stmt: PreparedStatement)(f: (A) ⇒ Box[T]) : List[T]

  98. def findAllDb (dbId: ConnectionIdentifier, by: QueryParam[A]*) : List[A]

  99. def findAllDb (dbId: ConnectionIdentifier) : List[A]

  100. def findAllFields (fields: Seq[SelectableField], by: QueryParam[A]*) : List[A]

  101. def findAllFieldsDb (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[A]*) : List[A]

  102. def findApplier (name: String, inst: AnyRef) : Box[(A, AnyRef) ⇒ Unit]

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

  104. def findMapByInsecureSql [T] (query: String, checkedBy: IHaveValidatedThisSQL)(f: (A) ⇒ Box[T]) : List[T]

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

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

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

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

  109. 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
  110. 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

  111. 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
  112. 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

  113. 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
  114. 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.

  115. def formatFormLine (displayName: NodeSeq, form: NodeSeq) : NodeSeq

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

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

  118. 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
  119. def getSingleton : MetaMapper[A]

    attributes: abstract
    definition classes: Mapper
  120. 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: AnyRef → Any
  121. def htmlHeaders : NodeSeq

  122. def htmlLine : NodeSeq

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

  124. 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
  125. 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
  126. 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

  127. 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
  128. lazy val mappedFields : Seq[BaseMappedField]

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

  130. 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
  131. 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
  132. 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
  133. def prependField (pf: FieldPF) : Unit

    definition classes: Mapper
  134. val rootClass : java.lang.Class[_ >: ?0]

    attributes: protected
  135. def runSafe [T] (f: ⇒ T) : T

    definition classes: Mapper
  136. 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
  137. def safe_? : Boolean

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

  139. def save () : Boolean

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

    Save the instance and return the instance

    Save the instance and return the instance

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

  142. def saved_? : Boolean

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

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

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

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

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

    definition classes: Mapper
  149. 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
  150. 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
  151. 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

  152. 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
  153. 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
  154. def toXml (what: A) : Elem

  155. def toXml : Elem

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

    attributes: final
  158. def validate : List[FieldError]

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

  160. def wait () : Unit

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

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

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

Inherited from Mapper[A]

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from BaseMetaMapper

Inherited from AnyRef

Inherited from Any