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. Hide All
  2. Show all
  1. MapperRules
  2. Factory
  3. SimpleInjector
  4. Injector
  5. AnyRef
  6. Any
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.

  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.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. 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)

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

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

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

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

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. 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.

  17. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  19. 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
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. val quoteColumnName: FactoryMaker[(String) ⇒ String]

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

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

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

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

    Definition Classes
    AnyRef
  28. 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)

  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. 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