Package

net.liftweb

mapper

Permalink

package mapper

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. mapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait AjaxEditableField[FieldType, OwnerType <: Mapper[OwnerType]] extends MappedField[FieldType, OwnerType]

    Permalink

    This trait can be added to existing Mapper fields to make them use AjaxUtils.editable for field display.

  2. trait AscOrDesc extends AnyRef

    Permalink
  3. trait BaseForeignKey extends BaseMappedField

    Permalink

    A trait that defines foreign key references

  4. sealed trait BaseIndex[A <: Mapper[A]] extends AnyRef

    Permalink
  5. trait BaseIndexedField extends BaseMappedField

    Permalink
  6. trait BaseKeyedMapper extends BaseMapper

    Permalink
  7. trait BaseLongKeyedMapper extends BaseKeyedMapper

    Permalink
  8. trait BaseMappedField extends SelectableField with Bindable with MixableMappedField with Serializable

    Permalink

    The base (not Typed) trait that defines a field that is mapped to a column or more than 1 column (e.g., MappedPassword) in the database

  9. trait BaseMapper extends FieldContainer

    Permalink
  10. trait BaseMetaMapper extends AnyRef

    Permalink
  11. trait BaseOwnedMappedField[OwnerType <: Mapper[OwnerType]] extends BaseMappedField

    Permalink
  12. case class BoundedIndexField[A <: Mapper[A]](field: MappedField[String, A], len: Int) extends IndexItem[A] with Product with Serializable

    Permalink
  13. sealed trait BoxedStringToken extends AnyRef

    Permalink
  14. final case class ByList[O <: Mapper[O], T](field: MappedField[T, O], vals: Seq[T]) extends QueryParam[O] with Product with Serializable

    Permalink
  15. final case class BySql[O <: Mapper[O]](query: String, checkedBy: IHaveValidatedThisSQL, params: Any*) extends QueryParam[O] with Product with Serializable

    Permalink

    Represents a query criterion using a parameterized SQL string.

    Represents a query criterion using a parameterized SQL string. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  16. trait CRUDify[KeyType, CrudType <: KeyedMapper[KeyType, CrudType]] extends Crudify

    Permalink

    This trait automatically adds CRUD (Create, read, update and delete) operations to an existing MetaMapper object.

    This trait automatically adds CRUD (Create, read, update and delete) operations to an existing MetaMapper object. Various methods can be overridden to customize which operations are available to a user and how things are displayed. For example, you can disable deletion of entities by overriding deleteMenuLoc to Empty.

    Note: Compilation will fail if you try to mix this into a Mapper instead of the associated MetaMapper. You have been warned.

  17. final case class Cmp[O <: Mapper[O], T](field: MappedField[T, O], opr: OprEnum.Value, value: Box[T], otherField: Box[MappedField[T, O]], dbFunc: Box[String]) extends QueryParam[O] with Product with Serializable

    Permalink
  18. type ConnectionIdentifier = util.ConnectionIdentifier

    Permalink
  19. type ConnectionManager = db.ConnectionManager

    Permalink
  20. trait CreatedTrait extends AnyRef

    Permalink

    A trait you can mix into a Mapper class that gives you a createdat column

  21. trait CreatedUpdated extends CreatedTrait with UpdatedTrait

    Permalink

    Mix this trait into your Mapper instance to get createdAt and updatedAt fields.

  22. trait DBIndexed extends BaseMappedField

    Permalink

    Mix this trait into a BaseMappedField and it will be indexed

  23. type DBLogEntry = db.DBLogEntry

    Permalink
  24. trait DefaultMillis extends TypedField[Long]

    Permalink

    Mix with MappedLong to give a default time of millis

  25. final case class Distinct[O <: Mapper[O]]() extends QueryParam[O] with Product with Serializable

    Permalink
  26. type DriverType = db.DriverType

    Permalink
  27. class FieldFinder[T] extends AnyRef

    Permalink
  28. final case class GenericIndex[A <: Mapper[A]](createFunc: (String, List[String]) ⇒ String, validated: IHaveValidatedThisSQL, columns: List[IndexItem[A]]) extends BaseIndex[A] with Product with Serializable

    Permalink

    Represents a generic user-specified index on the given columns.

    Represents a generic user-specified index on the given columns. The user provides a function to generate the SQL needed to create the index based on the table and columns. Validation is required since this is raw SQL being run on the database server.

  29. trait HasApplyBoxString[T] extends AnyRef

    Permalink
  30. class HasManyThrough[From <: KeyedMapper[ThroughType, From], To <: Mapper[To], Through <: Mapper[Through], ThroughType] extends LifecycleCallbacks

    Permalink
  31. case class IHaveValidatedThisSQL(who: String, date: String) extends Product with Serializable

    Permalink
  32. trait IdPK extends AnyRef

    Permalink
  33. final case class Ignore[O <: Mapper[O]]() extends QueryParam[O] with Product with Serializable

    Permalink
  34. final case class InRaw[TheType <: Mapper[TheType], T](field: MappedField[T, TheType], rawSql: String, checkedBy: IHaveValidatedThisSQL) extends QueryParam[TheType] with Product with Serializable

    Permalink
  35. sealed abstract class InThing[OuterType <: Mapper[OuterType]] extends QueryParam[OuterType]

    Permalink
  36. final case class Index[A <: Mapper[A]](columns: List[IndexItem[A]]) extends BaseIndex[A] with Product with Serializable

    Permalink
  37. case class IndexField[A <: Mapper[A], T](field: MappedField[T, A]) extends IndexItem[A] with Product with Serializable

    Permalink
  38. abstract class IndexItem[A <: Mapper[A]] extends AnyRef

    Permalink
  39. trait IndexedField[O] extends BaseIndexedField

    Permalink
  40. class KeyObfuscator extends AnyRef

    Permalink
  41. trait KeyedMapper[KeyType, OwnerType <: KeyedMapper[KeyType, OwnerType]] extends Mapper[OwnerType] with BaseKeyedMapper

    Permalink
  42. trait KeyedMetaMapper[Type, A <: KeyedMapper[Type, A]] extends MetaMapper[A] with KeyedMapper[Type, A]

    Permalink
  43. trait LifecycleCallbacks extends AnyRef

    Permalink
  44. trait LongCRUDify[CrudType <: KeyedMapper[Long, CrudType]] extends CRUDify[Long, CrudType]

    Permalink

    A specialization of CRUDify for LongKeyedMetaMappers.

  45. trait LongKeyedMapper[OwnerType <: LongKeyedMapper[OwnerType]] extends KeyedMapper[Long, OwnerType] with BaseLongKeyedMapper

    Permalink
  46. trait LongKeyedMetaMapper[A <: LongKeyedMapper[A]] extends KeyedMetaMapper[Long, A]

    Permalink
  47. trait ManyToMany extends BaseKeyedMapper

    Permalink

    Add this trait to a Mapper to add support for many-to-many relationships

  48. abstract class MappedBinary[T <: Mapper[T]] extends MappedField[Array[Byte], T]

    Permalink
  49. abstract class MappedBirthYear[T <: Mapper[T]] extends MappedInt[T]

    Permalink

    A field that holds the birth year for the user

  50. abstract class MappedBoolean[T <: Mapper[T]] extends MappedField[Boolean, T]

    Permalink
  51. abstract class MappedCountry[T <: Mapper[T]] extends MappedEnum[T, Countries.type]

    Permalink
  52. abstract class MappedDate[T <: Mapper[T]] extends MappedField[Date, T]

    Permalink

    Represents a date without hour, minute or second fields.

    Represents a date without hour, minute or second fields. The underlying type is java.util.Date to keep things simple, but be aware that the hour, minute and second values will most likely be discarded when this is saved to the database.

    See also

    MappedTime

    MappedDateTime

  53. abstract class MappedDateTime[T <: Mapper[T]] extends MappedField[Date, T]

    Permalink
  54. abstract class MappedDecimal[T <: Mapper[T]] extends MappedField[BigDecimal, T]

    Permalink

    A field that maps to a decimal value.

    A field that maps to a decimal value. Decimal precision and rounding are controlled via the context parameter. The default value is zero.

    Note:
    Using MathContext.UNLIMITED, whether explicitly or implicitly, means that no precision or scaling will be used for the SQL field definition; the default scale for DECIMAL is zero per the SQL standard, but the precision for DECIMAL is vendor-specific. For example, PostgreSQL uses maximum precision if it's not specified, but SQL Server uses a default precision of 18.

  55. abstract class MappedDouble[T <: Mapper[T]] extends MappedField[Double, T]

    Permalink
  56. abstract class MappedEmail[T <: Mapper[T]] extends MappedString[T]

    Permalink
  57. abstract class MappedEnum[T <: Mapper[T], ENUM <: Enumeration] extends MappedField[mapper.MappedEnum.ENUM.Value, T]

    Permalink

    Warning: Do not use unnamed Enumerations with 2.8.1 as this will cause too many items to be displayed in the dropdown.

    Warning: Do not use unnamed Enumerations with 2.8.1 as this will cause too many items to be displayed in the dropdown.

    See https://issues.scala-lang.org/browse/SI-3687 for details

  58. abstract class MappedEnumList[T <: Mapper[T], ENUM <: Enumeration] extends MappedField[Seq[mapper.MappedEnumList.ENUM.Value], T]

    Permalink
  59. abstract class MappedFakeClob[T <: Mapper[T]] extends MappedField[String, T]

    Permalink
  60. trait MappedField[FieldType, OwnerType <: Mapper[OwnerType]] extends TypedField[FieldType] with BaseOwnedMappedField[OwnerType] with FieldIdentifier with PSettableValueHolder[FieldType] with Equals

    Permalink

    The strongly typed field that's mapped to a column (or many columns) in the database.

    The strongly typed field that's mapped to a column (or many columns) in the database. FieldType is the type of the field and OwnerType is the Owner of the field

  61. trait MappedForeignKey[KeyType, MyOwner <: Mapper[MyOwner], Other <: KeyedMapper[KeyType, Other]] extends MappedField[KeyType, MyOwner] with LifecycleCallbacks

    Permalink

    The Trait that defines a field that is mapped to a foreign key

  62. abstract class MappedGender[T <: Mapper[T]] extends MappedEnum[T, Genders.type]

    Permalink
  63. abstract class MappedInt[T <: Mapper[T]] extends MappedField[Int, T]

    Permalink
  64. abstract class MappedIntIndex[T <: Mapper[T]] extends MappedInt[T] with IndexedField[Int]

    Permalink
  65. abstract class MappedLocale[T <: Mapper[T]] extends MappedString[T]

    Permalink
  66. abstract class MappedLong[T <: Mapper[T]] extends MappedField[Long, T]

    Permalink
  67. abstract class MappedLongForeignKey[T <: Mapper[T], O <: KeyedMapper[Long, O]] extends MappedLong[T] with MappedForeignKey[Long, T, O] with BaseForeignKey

    Permalink
  68. abstract class MappedLongIndex[T <: Mapper[T]] extends MappedLong[T] with IndexedField[Long]

    Permalink
  69. trait MappedNullableField[NullableFieldType, OwnerType <: Mapper[OwnerType]] extends MappedField[Box[NullableFieldType], OwnerType]

    Permalink

    A Mapped field that is Nullable in the database.

    A Mapped field that is Nullable in the database. Will return Empty box for NULL values and Full for non-null values

  70. abstract class MappedNullableLong[T <: Mapper[T]] extends MappedNullableField[Long, T]

    Permalink
  71. abstract class MappedPassword[T <: Mapper[T]] extends MappedField[String, T]

    Permalink
  72. abstract class MappedPoliteString[T <: Mapper[T]] extends MappedString[T]

    Permalink

    Just like MappedString, except it's defaultValue is "" and the length is auto-cropped to fit in the column

  73. abstract class MappedPostalCode[T <: Mapper[T]] extends MappedString[T]

    Permalink
  74. abstract class MappedString[T <: Mapper[T]] extends MappedField[String, T] with StringValidators with HasApplyBoxString[T]

    Permalink
  75. abstract class MappedStringForeignKey[T <: Mapper[T], O <: KeyedMapper[String, O]] extends MappedString[T] with MappedForeignKey[String, T, O] with BaseForeignKey

    Permalink
  76. abstract class MappedStringIndex[T <: Mapper[T]] extends MappedUniqueId[T] with IndexedField[String]

    Permalink
  77. abstract class MappedText[T <: Mapper[T]] extends MappedField[String, T]

    Permalink
  78. abstract class MappedTextarea[T <: Mapper[T]] extends MappedString[T]

    Permalink
  79. abstract class MappedTime[T <: Mapper[T]] extends MappedField[Date, T]

    Permalink

    Represents a time with hour, minute and second fields.

    Represents a time with hour, minute and second fields. The underlying type is java.util.Date to keep things simple, but be aware that the date portion of the values will most likely be discarded when this is saved to the database.

    See also

    MappedDate

    MappedDateTime

  80. abstract class MappedTimeZone[T <: Mapper[T]] extends MappedString[T]

    Permalink
  81. abstract class MappedUniqueId[T <: Mapper[T]] extends MappedString[T]

    Permalink
  82. trait Mapper[A <: Mapper[A]] extends BaseMapper with Serializable with SourceInfo

    Permalink
  83. class MapperException extends Exception

    Permalink
  84. final case class MaxRows[O <: Mapper[O]](max: Long) extends QueryParam[O] with Product with Serializable

    Permalink
  85. trait MegaProtoUser[T <: MegaProtoUser[T]] extends ProtoUser[T]

    Permalink

    ProtoUser is bare bones.

    ProtoUser is bare bones. MetaProtoUser contains a bunch more fields including a validated flag, locale, timezone, etc.

  86. trait MetaMapper[A <: Mapper[A]] extends BaseMetaMapper with Mapper[A]

    Permalink
  87. trait MetaMegaProtoUser[ModelType <: MegaProtoUser[ModelType]] extends KeyedMetaMapper[Long, ModelType] with proto.ProtoUser

    Permalink

    Mix this trait into the the Mapper singleton for User and you get a bunch of user functionality including password reset, etc.

  88. trait MetaProtoExtendedSession[T <: ProtoExtendedSession[T]] extends KeyedMetaMapper[Long, T]

    Permalink
  89. trait MetaProtoTag[ModelType <: ProtoTag[ModelType]] extends KeyedMetaMapper[Long, ModelType]

    Permalink
  90. trait MixableMappedField extends BaseField

    Permalink

    This is the supertrait of all traits that can be mixed into a MappedField.

    This is the supertrait of all traits that can be mixed into a MappedField. All methods should be abstract. They will be made concrete in implementations.

  91. sealed trait NullOrder extends AnyRef

    Permalink
  92. trait OneToMany[K, T <: KeyedMapper[K, T]] extends KeyedMapper[K, T]

    Permalink

    Add this trait to a Mapper for managed one-to-many support For example: class Contact extends LongKeyedMapper[Contact] with OneToMany[Long, Contact] { ...

    Add this trait to a Mapper for managed one-to-many support For example: class Contact extends LongKeyedMapper[Contact] with OneToMany[Long, Contact] { ... }

    K

    the type of the primary key

    T

    the mapper type

  93. final case class OrderBy[O <: Mapper[O], T](field: MappedField[T, O], order: AscOrDesc, nullOrder: Box[NullOrder]) extends QueryParam[O] with Product with Serializable

    Permalink
  94. final case class OrderBySql[O <: Mapper[O]](sql: String, checkedBy: IHaveValidatedThisSQL) extends QueryParam[O] with Product with Serializable

    Permalink
  95. final case class PreCache[TheType <: Mapper[TheType], FieldType, OtherType <: KeyedMapper[FieldType, OtherType]](field: MappedForeignKey[FieldType, TheType, OtherType], deterministic: Boolean) extends QueryParam[TheType] with Product with Serializable

    Permalink

    This QueryParam can be put in a query and will cause the given foreign key field to be precached.

    This QueryParam can be put in a query and will cause the given foreign key field to be precached.

    field

    - the field to precache

    deterministic

    - true if the query is deterministic. Will be more efficient. false if the query is not deterministic. In this case, a SELECT * FROM FK_TABLE WHERE primary_key in (xxx) will be generated

  96. trait ProtoExtendedSession[T <: ProtoExtendedSession[T]] extends KeyedMapper[Long, T]

    Permalink
  97. abstract class ProtoTag[MyType <: ProtoTag[MyType]] extends KeyedMapper[Long, MyType] with Ordered[MyType]

    Permalink
  98. trait ProtoUser[T <: ProtoUser[T]] extends KeyedMapper[Long, T] with UserIdAsString

    Permalink

    ProtoUser is a base class that gives you a "User" that has a first name, last name, email, etc.

  99. sealed trait QueryParam[O <: Mapper[O]] extends AnyRef

    Permalink
  100. trait SelectableField extends AnyRef

    Permalink
  101. type StandardDBVendor = db.StandardDBVendor

    Permalink
  102. final case class StartAt[O <: Mapper[O]](start: Long) extends QueryParam[O] with Product with Serializable

    Permalink
  103. trait StopValidationOnError[T] extends (T) ⇒ List[FieldError]

    Permalink

    If this trait is mixed into a validation function, the validation for a field will stop if this validation function returns an error

  104. type SuperConnection = db.SuperConnection

    Permalink
  105. trait TypedField[FieldType] extends AnyRef

    Permalink
  106. final case class UniqueIndex[A <: Mapper[A]](columns: List[IndexItem[A]]) extends BaseIndex[A] with Product with Serializable

    Permalink

    Represents a unique index on the given columns

  107. trait UpdatedTrait extends AnyRef

    Permalink

    A trait you can mix into a Mapper class that gives you an updatedat column

  108. trait UserIdAsString extends AnyRef

    Permalink
  109. trait ValidateLength extends MixableMappedField

    Permalink

    Mix this trait into a MappedString and it will add maximum length validation to the MappedString

Value Members

  1. object Ascending extends AscOrDesc with Product with Serializable

    Permalink
  2. object BoxedStringToken

    Permalink
  3. object By

    Permalink
  4. object ByRef

    Permalink
  5. object By_<

    Permalink
  6. object By_<=

    Permalink
  7. object By_>

    Permalink
  8. object By_>=

    Permalink
  9. object Countries extends Enumeration

    Permalink
  10. object DB extends DB1

    Permalink
  11. def DBLogEntry: db.DBLogEntry.type

    Permalink
  12. def DefaultConnectionIdentifier: util.DefaultConnectionIdentifier.type

    Permalink
  13. object Descending extends AscOrDesc with Product with Serializable

    Permalink
  14. def DriverType: db.DriverType.type

    Permalink
  15. object Genders extends Enumeration

    Permalink
  16. object GenericIndex extends Serializable

    Permalink
  17. object In

    Permalink
  18. object Index extends Serializable

    Permalink
  19. object Like

    Permalink
  20. object MappedEmail extends Serializable

    Permalink
  21. object MappedForeignKey extends Serializable

    Permalink
  22. object MappedPassword extends Serializable

    Permalink
  23. object MappedTimeZone extends Serializable

    Permalink
  24. object MapperRules extends Factory

    Permalink

    Rules and functions shared by all Mappers

  25. object NotBy

    Permalink
  26. object NotByRef

    Permalink
  27. object NotIn

    Permalink
  28. object NotLike

    Permalink
  29. object NotNullRef

    Permalink
  30. object NullRef

    Permalink
  31. object NullsFirst extends NullOrder with Product with Serializable

    Permalink
  32. object NullsLast extends NullOrder with Product with Serializable

    Permalink
  33. object OprEnum extends Enumeration

    Permalink
  34. object OrderBy extends Serializable

    Permalink
  35. object PreCache extends Serializable

    Permalink
  36. object Schemifier extends Loggable

    Permalink

    Given a list of MetaMappers, make sure the database has the right schema

    Given a list of MetaMappers, make sure the database has the right schema

    • Make sure all the tables exists
    • Make sure the columns in the tables are correct
    • Create the indexes
    • Create the foreign keys
  37. object StopValidationOnError

    Permalink
  38. object UniqueIndex extends Serializable

    Permalink
  39. package view

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped