Object

net.liftweb.mapper

MapperRules

Related Doc: package mapper

Permalink

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]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. var columnName: (ConnectionIdentifier, String) ⇒ String

    Permalink

    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

    Permalink

    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

    Permalink

    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]

    Permalink

    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

    Permalink

    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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. var formatFormElement: (NodeSeq, NodeSeq) ⇒ NodeSeq

    Permalink

    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[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. implicit def inject[T](implicit man: Manifest[T]): Box[T]

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

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

    Permalink

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

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

    Permalink

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

  24. def registerInjection[T](f: () ⇒ T)(implicit man: Manifest[T]): Unit

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  26. var tableName: (ConnectionIdentifier, String) ⇒ String

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Factory

Inherited from SimpleInjector

Inherited from Injector

Inherited from AnyRef

Inherited from Any

Ungrouped