trait Mapper[A <: Mapper[A]] extends BaseMapper with Serializable with SourceInfo
- Self Type
- A
- Alphabetic
- By Inheritance
- Mapper
- SourceInfo
- Serializable
- Serializable
- BaseMapper
- FieldContainer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
-
type
MapperType = A
- Definition Classes
- Mapper → BaseMapper
Abstract Value Members
- abstract def getSingleton: MetaMapper[A]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allFieldNames(): Seq[(String, SourceFieldMetadata)]
Get a list of all the fields
-
def
allFields: Seq[BaseField]
- Definition Classes
- Mapper → FieldContainer
- def appendFieldTransform(transform: CssSel): Unit
- def asHtml: NodeSeq
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJs: JsExp
Convert the model to a JavaScript object
-
def
asValid: Box[A]
Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors
- def checkNames: Unit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def comparePrimaryKeys(other: A): Boolean
- def connectionIdentifier: ConnectionIdentifier
- def connectionIdentifier(id: ConnectionIdentifier): A
- def countryField: Box[MappedCountry[A]]
- def dbCalculateConnectionIdentifier: PartialFunction[A, ConnectionIdentifier]
-
def
dbName: String
- Definition Classes
- Mapper → BaseMapper
-
def
db_can_delete_?: Boolean
Can this model object be deleted?
-
def
delete_!: Boolean
Delete the model from the RDBMS
- def dirty_?: Boolean
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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]
-
def
fieldMapperTransforms(fieldTransform: (BaseOwnedMappedField[A]) ⇒ NodeSeq): Seq[CssSel]
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.
-
def
fieldTransforms: Seq[CssSel]
A list of CSS selector transforms that will help render the fields of this mapper object.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findSourceField(name: String): Box[SourceFieldInfo]
Given a name, look up the field
Given a name, look up the field
- name
the name of the field
- returns
the metadata
- Definition Classes
- Mapper → SourceInfo
-
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
-
def
flatMapFieldTitleForm2[T](func: (NodeSeq, 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
-
def
formFields: List[MappedField[_, A]]
Get the fields (in order) for displaying a form
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def htmlLine: NodeSeq
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
localeField: Box[MappedLocale[A]]
If there's a field in this record that defines the locale, return it
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def prependFieldTransform(transform: CssSel): Unit
- def runSafe[T](f: ⇒ T): T
- final def safe_?: Boolean
-
def
save(): Boolean
- Definition Classes
- Mapper → BaseMapper
-
def
saveMe(): A
Save the instance and return the instance
- def saved_?: Boolean
-
def
suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)]
If the instance calculates any additional fields for JSON object, put the calculated fields here
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- implicit def thisToMappee(in: Mapper[A]): A
- def timeZoneField: Box[MappedTimeZone[A]]
- def toForm(button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (A) ⇒ Unit): NodeSeq
-
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
-
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
-
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
-
def
toString(): String
- Definition Classes
- Mapper → AnyRef → Any
- def toXml: Elem
- def validate: List[FieldError]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )