Get a list of all the fields
Convert the model to a JavaScript object
Convert the model to a JavaScript object
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
Can this model object be deleted?
Can this model object be deleted?
Delete the model from the RDBMS
Delete the model from the RDBMS
Append a function to perform after the commit happens
Append a function to perform after the commit happens
- the function to perform after the commit happens
The email field for the User.
The email field for the User. You can override the behavior of this field:
override lazy val email = new MyEmail(this, 48) { println("I am doing something different") }
The email first name
Find the field by name
Find the field by name
-- the name of the field to find
Box[MappedField]
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.
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.
Given a name, look up the field
Given a name, look up the field
the name of the field
the metadata
The first name field for the User.
The first name field for the User. You can override the behavior of this field:
override lazy val firstName = new MyFirstName(this, 32) { println("I am doing something different") }
The string name for the first name field
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
called with displayHtml, fieldId, form
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
called with displayHtml, fieldId, form
Get the fields (in order) for displaying a form
Get the fields (in order) for displaying a form
The primary key field for the User.
The primary key field for the User. You can override the behavior of this field:
override lazy val id = new MyMappedLongClass(this) { println("I am doing something different") }
The last field for the User.
The last field for the User. You can override the behavior of this field:
override lazy val lastName = new MyLastName(this, 32) { println("I am doing something different") }
The last name string
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
map the fields titles and forms to generate a list
map the fields titles and forms to generate a list
called with displayHtml, fieldId, form
The password field for the User.
The password field for the User. You can override the behavior of this field:
override lazy val password = new MyPassword(this) { println("I am doing something different") }
The display name for the password field
Save the instance and return the instance
Save the instance and return the instance
The superuser field for the User.
The superuser field for the User. You can override the behavior of this field:
override lazy val superUser = new MySuperUser(this) { println("I am doing something different") }
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
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
- If it's Full, put a submit button on the form with the value of the parameter
- the function to execute on form submission
the form
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
- If it's Full, put a submit button on the form with the value of the parameter
- redirect to the URL if the model validates, otherwise display the errors
the form
Present the model as a HTML using the same formatting as toForm
Present the model as a HTML using the same formatting as toForm
the html view of the model
Convert the id to a String
Convert the id to a String
ProtoUser is a base class that gives you a "User" that has a first name, last name, email, etc.