Packages

o

net.liftweb.mapper

MapperRules

object MapperRules extends Factory

Rules and functions shared by all Mappers

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapperRules
  2. Factory
  3. SimpleInjector
  4. Injector
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. 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
  2. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. 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)

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

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

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

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

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. 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.

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. 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
    SimpleInjectorInjector
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. val quoteColumnName: FactoryMaker[(String) ⇒ String]

    What are the rules and mechanisms for putting quotes around column names?

  23. val quoteTableName: FactoryMaker[(String) ⇒ String]

    What are the rules and mechanisms for putting quotes around table names?

  24. 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
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. 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)

  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Factory

Inherited from SimpleInjector

Inherited from Injector

Inherited from AnyRef

Inherited from Any

Ungrouped