net.liftweb.mapper

MapperRules

object MapperRules extends Factory

Rules and functions shared by all Mappers

Linear Supertypes
Factory, SimpleInjector, Injector, AnyRef, Any
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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class FactoryMaker[T] extends StackableMaker[T] with Vendor[T]

    Definition Classes
    Factory
  2. abstract class Inject[T] extends StackableMaker[T] with Vendor[T]

    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]

    Definition Classes
    SimpleInjector → Injector
  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

    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