object MapperRules extends Factory
Rules and functions shared by all Mappers
- Alphabetic
- By Inheritance
- MapperRules
- Factory
- SimpleInjector
- Injector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
FactoryMaker
[T] extends StackableMaker[T] with Vendor[T]
Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.
Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.
- Definition Classes
- Factory
-
abstract
class
Inject
[T] extends StackableMaker[T] with Vendor[T]
Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.
Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.
- Definition Classes
- SimpleInjector
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
var
columnName: (ConnectionIdentifier, String) ⇒ String
Calculate the name of a column based on the name of the MappedField.
Calculate the name of a column based on the name of the MappedField. Must be set in Boot before any code that touches the MetaMapper.
To get snake_case, use this:
MapperRules.columnName = (_,name) => StringHelpers.snakify(name)
-
var
createForeignKeys_?: (ConnectionIdentifier) ⇒ Boolean
Function that determines if foreign key constraints are created by Schemifier for the specified connection.
Function that determines if foreign key constraints are created by Schemifier for the specified connection.
Note: The driver choosen must also support foreign keys for creation to happen
-
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 <td> for use in XHTML tables. If you change this function, the change will be used for all MetaMappers, unless they've been explicitly changed.
-
val
displayNameCalculator: FactoryMaker[(BaseMapper, Locale, String) ⇒ String]
This function is used to calculate the displayName of a field.
This function is used to calculate the displayName of a field. Can be used to easily localize fields based on the locale in the current request
-
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 <th> for use in XHTML tables. If you change this function, the change will be used for all MetaMappers, unless they've been explicitly changed.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
var
formatFormElement: (NodeSeq, NodeSeq) ⇒ NodeSeq
This function is the global (for all MetaMappers that have not changed their formatFormElement function) that converts a name and form for a given field in the model to XHTML for presentation in the browser.
This function is the global (for all MetaMappers that have not changed their formatFormElement function) that 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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
implicit
def
inject[T](implicit man: Manifest[T]): Box[T]
Perform the injection for the given type.
Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be
- Definition Classes
- SimpleInjector → Injector
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
quoteColumnName: FactoryMaker[(String) ⇒ String]
What are the rules and mechanisms for putting quotes around column names?
-
val
quoteTableName: FactoryMaker[(String) ⇒ String]
What are the rules and mechanisms for putting quotes around table names?
-
def
registerInjection[T](f: () ⇒ T)(implicit man: Manifest[T]): Unit
Register a function that will inject for the given Manifest
Register a function that will inject for the given Manifest
- Definition Classes
- SimpleInjector
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
var
tableName: (ConnectionIdentifier, String) ⇒ String
Calculate the name of a table based on the name of the Mapper.
Calculate the name of a table based on the name of the Mapper. Must be set in Boot before any code that tocuhes the MetaMapper.
To get snake_case, use this
MapperRules.tableName = (_,name) => StringHelpers.snakify(name)
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )