Trait

net.liftweb.mapper

LongKeyedMetaMapper

Related Doc: package mapper

Permalink

trait LongKeyedMetaMapper[A <: LongKeyedMapper[A]] extends KeyedMetaMapper[Long, A]

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

Type Members

  1. type AnyBound = T forSome {type T}

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

    Permalink
    Definition Classes
    MetaMapper
  3. type FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Permalink
    Definition Classes
    Mapper
  4. type KeyedMapperType = A

    Permalink
    Definition Classes
    KeyedMapperBaseKeyedMapper
  5. type MapperType = A

    Permalink
    Definition Classes
    MapperBaseMapper
  6. type OtherMapper = KeyedMapper[_, _]

    Permalink
    Definition Classes
    MetaMapper
  7. type OtherMetaMapper = KeyedMetaMapper[_, _]

    Permalink
    Definition Classes
    MetaMapper
  8. type Q = MappedForeignKey[(LongKeyedMetaMapper.this)#AnyBound, A, OO] with MappedField[(LongKeyedMetaMapper.this)#AnyBound, A] forSome {type OO <: KeyedMapper[(LongKeyedMetaMapper.this)#AnyBound, OO]}

    Permalink
    Definition Classes
    KeyedMetaMapper
  9. type RealType = A

    Permalink
    Definition Classes
    MetaMapperBaseMetaMapper
  10. type TheKeyType = Long

    Permalink
    Definition Classes
    KeyedMapperBaseKeyedMapper

Abstract Value Members

  1. abstract def getSingleton: KeyedMetaMapper[Long, A]

    Permalink
    Definition Classes
    KeyedMapperMapper
  2. abstract def primaryKeyField: MappedField[Long, A] with IndexedField[Long]

    Permalink
    Definition Classes
    KeyedMapperBaseKeyedMapper

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def _dbTableNameLC: String

    Permalink

    The table name, to lower case...

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    MetaMapper
  6. def addFormSnippet(html: NodeSeq): NodeSeq

    Permalink

    Base add form snippet.

    Base add form snippet. Fetches object from addSnippetSetup and invokes addSnippetCallback when the form is submitted.

    Definition Classes
    KeyedMetaMapper
  7. def addSnippetCallback(obj: A): Unit

    Permalink

    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
  8. def addSnippetSetup: A

    Permalink

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

    Permalink
    Definition Classes
    MetaMapper
  10. def afterCommit: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  11. def afterCreate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  12. def afterDelete: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  13. def afterSave: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  14. def afterSchemifier: Unit

    Permalink
    Definition Classes
    KeyedMetaMapperMetaMapperBaseMetaMapper
  15. def afterUpdate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  16. def afterValidation: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  17. def afterValidationOnCreate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  18. def afterValidationOnUpdate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  19. def allFieldNames(): Seq[(String, SourceFieldMetadata)]

    Permalink

    Get a list of all the fields

    Get a list of all the fields

    returns

    a list of all the fields

    Definition Classes
    MapperSourceInfo
  20. def allFields: Seq[BaseField]

    Permalink
    Definition Classes
    MapperFieldContainer
  21. def appendFieldToStrings(in: A): String

    Permalink
    Definition Classes
    MetaMapper
  22. def appendFieldTransform(transform: CssSel): Unit

    Permalink
    Definition Classes
    Mapper
  23. def asHtml(toLine: A): NodeSeq

    Permalink
    Definition Classes
    MetaMapper
  24. def asHtml: NodeSeq

    Permalink
    Definition Classes
    Mapper
  25. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  26. def asJs(actual: A): JsExp

    Permalink
    Definition Classes
    MetaMapper
  27. def asJs: JsExp

    Permalink

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

    Definition Classes
    Mapper
  28. def asSafeJs(actual: A, f: KeyObfuscator): JsExp

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

    Permalink
    Definition Classes
    KeyedMapper
  30. def asValid: Box[A]

    Permalink

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

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

    Definition Classes
    Mapper
  31. def beforeCreate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  32. def beforeDelete: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  33. def beforeSave: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  34. def beforeSchemifier: Unit

    Permalink
    Definition Classes
    MetaMapperBaseMetaMapper
  35. def beforeUpdate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  36. def beforeValidation: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  37. def beforeValidationOnCreate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  38. def beforeValidationOnUpdate: List[(A) ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapper
  39. implicit def boundedFieldToItem(in: (MappedField[String, A], Int)): BoundedIndexField[A]

    Permalink
    Definition Classes
    MetaMapper
  40. def buildMapper(rs: ResultSet): List[Box[(ResultSet, Int, A) ⇒ Unit]]

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

    Permalink

    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
  42. def bulkDelete_!!(dbId: ConnectionIdentifier, by: QueryParam[A]*): Boolean

    Permalink
    Definition Classes
    MetaMapper
  43. def bulkDelete_!!(by: QueryParam[A]*): Boolean

    Permalink
    Definition Classes
    MetaMapper
  44. def checkNames: Unit

    Permalink
    Definition Classes
    Mapper
  45. def clean_?(toCheck: A): Boolean

    Permalink

    Returns true if none of the fields are dirty

    Returns true if none of the fields are dirty

    Definition Classes
    MetaMapper
  46. def clone(): AnyRef

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

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

    Permalink

    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
  49. val columnQueriesForInsert: String

    Permalink
    Definition Classes
    MetaMapper
  50. def comparePrimaryKeys(other: A): Boolean

    Permalink
    Definition Classes
    KeyedMapperMapper
  51. def connectionIdentifier: ConnectionIdentifier

    Permalink
    Definition Classes
    Mapper
  52. def connectionIdentifier(id: ConnectionIdentifier): A

    Permalink
    Definition Classes
    Mapper
  53. def count(by: QueryParam[A]*): Long

    Permalink
    Definition Classes
    MetaMapper
  54. def count: Long

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

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

    Permalink
    Definition Classes
    MetaMapper
  57. def countDb(dbId: ConnectionIdentifier, by: QueryParam[A]*): Long

    Permalink
    Definition Classes
    MetaMapper
  58. def countryField: Box[MappedCountry[A]]

    Permalink
    Definition Classes
    Mapper
  59. def create: A

    Permalink
    Definition Classes
    MetaMapper
  60. def createInstance: A

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

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

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

    Permalink
    Definition Classes
    MetaMapper
  64. def crudSnippets: SnippetPF

    Permalink

    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
  65. def crudSnippets_?: Boolean

    Permalink

    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
  66. def dbAddTable: Box[() ⇒ Unit]

    Permalink
    Definition Classes
    MetaMapperBaseMetaMapper
  67. def dbCalculateConnectionIdentifier: PartialFunction[A, ConnectionIdentifier]

    Permalink
    Definition Classes
    Mapper
  68. def dbDefaultConnectionIdentifier: ConnectionIdentifier

    Permalink
    Definition Classes
    MetaMapper
  69. def dbIndexes: List[BaseIndex[A]]

    Permalink
    Definition Classes
    MetaMapperBaseMetaMapper
  70. def dbName: String

    Permalink

    The name of the mapped object

    The name of the mapped object

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

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

    Permalink
    Definition Classes
    KeyedMetaMapper
  73. def dbTableName: String

    Permalink

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

    Permalink

    Can this model object be deleted?

    Can this model object be deleted?

    Definition Classes
    Mapper
  75. def decodeFromJSON_!(json: JObject, markFieldsAsDirty: Boolean): A

    Permalink

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

    Permalink
    Definition Classes
    MetaMapper
  77. def delete_!: Boolean

    Permalink

    Delete the model from the RDBMS

    Delete the model from the RDBMS

    Definition Classes
    Mapper
  78. def dirty_?(toTest: A): Boolean

    Permalink
    Definition Classes
    MetaMapper
  79. def dirty_?: Boolean

    Permalink
    Definition Classes
    Mapper
  80. var displayFieldAsLineElement: (NodeSeq) ⇒ NodeSeq

    Permalink

    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
  81. var displayNameToHeaderElement: (String) ⇒ NodeSeq

    Permalink

    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
  82. lazy val doAllFieldNames: Seq[(String, SourceFieldMetadata)]

    Permalink

    Get a list of all the fields

    Get a list of all the fields

    returns

    a list of all the fields

    Definition Classes
    MetaMapper
  83. def doHtmlLine(toLine: A): NodeSeq

    Permalink
    Definition Classes
    MetaMapper
  84. def doPostCommit(func: () ⇒ Unit): A

    Permalink

    Append a function to perform after the commit happens

    Append a function to perform after the commit happens

    func

    - the function to perform after the commit happens

    Definition Classes
    Mapper
  85. def editFormSnippet(html: NodeSeq): NodeSeq

    Permalink

    Base edit form snippet.

    Base edit form snippet. Fetches object from editSnippetSetup and invokes editSnippetCallback when the form is submitted.

    Definition Classes
    KeyedMetaMapper
  86. def editSnippetCallback(obj: A): Unit

    Permalink

    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
  87. def editSnippetSetup: A

    Permalink

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

    Permalink
    Definition Classes
    MetaMapper
  89. def encodeAsJSON_!(toEncode: A): JObject

    Permalink

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

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

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

    Permalink

    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
  93. def fieldByName[T](fieldName: String): Box[MappedField[T, A]]

    Permalink

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

    Definition Classes
    Mapper
  94. def fieldMapperTransforms(fieldHtml: (BaseOwnedMappedField[A]) ⇒ NodeSeq, mappedObject: A): Seq[CssSel]

    Permalink

    A set of CssSels that can be used to bind this MetaMapper's fields.

    A set of CssSels that can be used to bind this MetaMapper's fields.

    Elements with a class matching the field name are mapped to the NodeSeq produced by the fieldHtml function that is passed in.

    So, with a MetaMapper that has three fields, name, date, and description, the resulting CSS selector transforms are:

    Seq(
      ".name" #> fieldHtml(-name field-),
      ".date" #> fieldHtml(-date field-),
      ".description" #> fieldHtml(-description field-)
    )

    Above, -name field-, -date field-, and -description field- refer to the actual MappedField objects for those fields.

    Definition Classes
    MetaMapper
  95. def fieldMapperTransforms(fieldTransform: (BaseOwnedMappedField[A]) ⇒ NodeSeq): Seq[CssSel]

    Permalink

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

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

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

    Permalink

    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
  97. lazy val fieldNamesAsMap: Map[String, SourceFieldMetadata]

    Permalink

    Get a list of all the fields as a map

    Get a list of all the fields as a map

    returns

    a list of all the fields

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

    Permalink
    Definition Classes
    MetaMapper
  99. implicit def fieldToItem[T](in: MappedField[T, A]): IndexItem[A]

    Permalink
    Definition Classes
    MetaMapper
  100. def fieldTransforms: Seq[CssSel]

    Permalink

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

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

    Definition Classes
    Mapper
  101. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  102. def find(by: QueryParam[A]*): Box[A]

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

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

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

    Permalink

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

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

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

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

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

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

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

    Permalink

    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: (A) ⇒ Box[T]): List[T]

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    KeyedMetaMapper
  123. def findDbByKey(dbId: ConnectionIdentifier, fields: Seq[SelectableField], key: Long): Box[A]

    Permalink
    Definition Classes
    KeyedMetaMapper
  124. def findDbByKey(dbId: ConnectionIdentifier, key: Long): Box[A]

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

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

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

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

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

    Permalink
    Definition Classes
    MetaMapper
  130. def findOrCreate(key: List[String]): A

    Permalink

    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
  131. def findOrCreate(key: Any): A

    Permalink

    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 findSourceField(name: String): Box[SourceFieldInfo]

    Permalink

    Given a name, look up the field

    Given a name, look up the field

    name

    the name of the field

    returns

    the metadata

    Definition Classes
    MapperSourceInfo
  133. def flatMapFieldTitleForm[T](toMap: A, func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    MetaMapper
  134. def flatMapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    Mapper
  135. def flatMapFieldTitleForm2[T](toMap: A, func: (NodeSeq, MappedField[_, A], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    MetaMapper
  136. def flatMapFieldTitleForm2[T](func: (NodeSeq, MappedField[_, A], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    Mapper
  137. def formFields(toMap: A): List[MappedField[_, A]]

    Permalink

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

    Permalink

    Get the fields (in order) for displaying a form

    Get the fields (in order) for displaying a form

    Definition Classes
    Mapper
  139. def formSnippet(html: NodeSeq, obj: A, cleanup: (A) ⇒ Unit): NodeSeq

    Permalink

    Provides basic transformation of html to a form for the given obj.

    Provides basic transformation of html to a form for the given obj. When the form is submitted, cleanup is run.

    Definition Classes
    KeyedMetaMapper
  140. var formatFormElement: (NodeSeq, NodeSeq) ⇒ NodeSeq

    Permalink

    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
  141. def formatFormLine(displayName: NodeSeq, form: NodeSeq): NodeSeq

    Permalink
    Definition Classes
    MetaMapper
  142. def getActualBaseField(actual: A, protoField: BaseOwnedMappedField[A]): BaseOwnedMappedField[A]

    Permalink

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

    Permalink

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

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

    Permalink
    Definition Classes
    KeyedMapper → AnyRef → Any
  146. def htmlHeaders: NodeSeq

    Permalink
    Definition Classes
    MetaMapper
  147. def htmlLine: NodeSeq

    Permalink
    Definition Classes
    Mapper
  148. def indexedField(toSave: A): Box[MappedField[Any, A]]

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

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

    Permalink

    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]

    Permalink

    map the fields titles and forms to generate a list

    map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    MetaMapper
  152. def mapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]

    Permalink

    map the fields titles and forms to generate a list

    map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

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

    Permalink

    The mapped fields

    The mapped fields

    Definition Classes
    MetaMapperBaseMetaMapper
  154. lazy val mappedFieldsForModel: List[MappedField[_, A]]

    Permalink

    the mapped fields as MappedField rather than BaseMappedField

    the mapped fields as MappedField rather than BaseMappedField

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

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

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

    Permalink
    Definition Classes
    AnyRef
  158. def objFromIndexedParam: Box[A]

    Permalink

    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 prependFieldTransform(transform: CssSel): Unit

    Permalink
    Definition Classes
    Mapper
  160. def reload: A

    Permalink
    Definition Classes
    KeyedMapper
  161. val rootClass: Class[?0] forSome {type ?0 >: ?0, type ?0 <: MetaMapper[A] with A}

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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    MetaMapper
  166. def save(): Boolean

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

    Permalink

    Save the instance and return the instance

    Save the instance and return the instance

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

    Permalink
    Definition Classes
    MetaMapper
  169. def saved_?: Boolean

    Permalink
    Definition Classes
    Mapper
  170. def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)]

    Permalink

    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
  171. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Mapper
  173. def timeZoneField: Box[MappedTimeZone[A]]

    Permalink
    Definition Classes
    Mapper
  174. def toForm(toMap: A): NodeSeq

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

    Permalink
    Definition Classes
    Mapper
  176. def toForm(button: Box[String], f: (A) ⇒ Any): NodeSeq

    Permalink

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

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

    button

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

    f

    - the function to execute on form submission

    returns

    the form

    Definition Classes
    Mapper
  177. def toForm(button: Box[String], onSuccess: String): NodeSeq

    Permalink

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

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

    button

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

    onSuccess

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

    returns

    the form

    Definition Classes
    Mapper
  178. def toHtml(toMap: A): NodeSeq

    Permalink

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

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

    toMap

    the instance to generate the HTML for

    returns

    the html view of the model

    Definition Classes
    MetaMapper
  179. def toHtml: NodeSeq

    Permalink

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

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

    returns

    the html view of the model

    Definition Classes
    Mapper
  180. def toString(): String

    Permalink
    Definition Classes
    Mapper → AnyRef → Any
  181. def toXml(what: A): Elem

    Permalink
    Definition Classes
    MetaMapper
  182. def toXml: Elem

    Permalink
    Definition Classes
    Mapper
  183. def unapply(key: Any): Option[A]

    Permalink
    Definition Classes
    KeyedMetaMapper
  184. def updateFromJSON_!(toUpdate: A, json: JObject): A

    Permalink

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

    Permalink
    Definition Classes
    MetaMapper
  186. def validate: List[FieldError]

    Permalink
    Definition Classes
    Mapper
  187. def validation: List[(A) ⇒ List[FieldError]]

    Permalink

    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
  188. def viewSnippetSetup: A

    Permalink

    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
  189. def viewTransform(html: NodeSeq): NodeSeq

    Permalink

    Basic transformation of html to HTML for displaying the object from viewSnippetSetup.

    Basic transformation of html to HTML for displaying the object from viewSnippetSetup.

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  193. def whatToSet(toSave: A): String

    Permalink
    Definition Classes
    MetaMapper

Inherited from KeyedMetaMapper[Long, A]

Inherited from KeyedMapper[Long, A]

Inherited from BaseKeyedMapper

Inherited from MetaMapper[A]

Inherited from Mapper[A]

Inherited from SourceInfo

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from BaseMetaMapper

Inherited from AnyRef

Inherited from Any

Ungrouped