Trait

net.liftweb.mapper

BaseForeignKey

Related Doc: package mapper

Permalink

trait BaseForeignKey extends BaseMappedField

A trait that defines foreign key references

Linear Supertypes
BaseMappedField, Serializable, Serializable, MixableMappedField, BaseField, FieldContainer, SettableField, SettableValueHolder, Settable, ReadableField, ValueHolder, FieldIdentifier, Bindable, SelectableField, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BaseForeignKey
  2. BaseMappedField
  3. Serializable
  4. Serializable
  5. MixableMappedField
  6. BaseField
  7. FieldContainer
  8. SettableField
  9. SettableValueHolder
  10. Settable
  11. ReadableField
  12. ValueHolder
  13. FieldIdentifier
  14. Bindable
  15. SelectableField
  16. AnyRef
  17. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. abstract type KeyType

    Permalink
  2. abstract type KeyedForeignType <: KeyedMapper[KeyType, KeyedForeignType]

    Permalink
  3. abstract type OwnerType <: Mapper[OwnerType]

    Permalink
  4. abstract type TheOwnerType <: Mapper[TheOwnerType]

    Permalink

    Will be set to the type of the owner of the field

    Will be set to the type of the owner of the field

    Definition Classes
    MixableMappedField
  5. abstract type ValueType

    Permalink
    Definition Classes
    ValueHolder

Abstract Value Members

  1. abstract def _toForm: Box[NodeSeq]

    Permalink

    This is where the instance creates its "toForm" stuff.

    This is where the instance creates its "toForm" stuff. The actual toForm method wraps the information based on mode.

    Definition Classes
    BaseMappedField
  2. abstract def asJsExp: JsExp

    Permalink
    Definition Classes
    BaseMappedField
  3. abstract def asJsonValue: Box[JValue]

    Permalink
    Definition Classes
    BaseMappedField
  4. abstract def asString: String

    Permalink

    Convert the field to its name/value pair (e.g., name=David)

    Convert the field to its name/value pair (e.g., name=David)

    Definition Classes
    BaseMappedFieldMixableMappedField
  5. abstract def dbAddedColumn: Box[() ⇒ Unit]

    Permalink

    Called when a column has been added to the database via Schemifier

    Called when a column has been added to the database via Schemifier

    Definition Classes
    BaseMappedField
  6. abstract def dbAddedForeignKey: Box[() ⇒ Unit]

    Permalink

    Called when Schemifier adds a foreign key.

    Called when Schemifier adds a foreign key. Return a function that will be called when Schemifier is done with the schemification.

  7. abstract def dbAddedIndex: Box[() ⇒ Unit]

    Permalink

    Called when a column has indexed via Schemifier

    Called when a column has indexed via Schemifier

    Definition Classes
    BaseMappedField
  8. abstract def dbColumnCount: Int

    Permalink

    The number of database columns that this field represents

    The number of database columns that this field represents

    Definition Classes
    BaseMappedFieldMixableMappedField
  9. abstract def dbColumnName: String

    Permalink
    Definition Classes
    BaseMappedField
  10. abstract def dbColumnNames(in: String): List[String]

    Permalink
    Definition Classes
    BaseMappedField
  11. abstract def dbForeignKey_?: Boolean

    Permalink

    Is the field a foreign key reference

    Is the field a foreign key reference

    Definition Classes
    BaseMappedFieldMixableMappedField
  12. abstract def dbIndexed_?: Boolean

    Permalink

    Should the field be indexed?

    Should the field be indexed?

    Definition Classes
    BaseMappedFieldMixableMappedField
  13. abstract def dbKeyToColumn: BaseMappedField

    Permalink
  14. abstract def dbKeyToTable: BaseMetaMapper

    Permalink

    get the object referred to by this foreign key

  15. abstract def dbPrimaryKey_?: Boolean

    Permalink

    Is the field the table's primary key

    Is the field the table's primary key

    Definition Classes
    BaseMappedFieldMixableMappedField
  16. abstract def dbSelectString: String

    Permalink
    Definition Classes
    SelectableField
  17. abstract def defined_?: Boolean

    Permalink

    Is the key defined?

  18. abstract def doneWithSave(): Unit

    Permalink

    Called after the field is saved to the database

    Called after the field is saved to the database

    Attributes
    protected[net.liftweb.mapper]
    Definition Classes
    BaseMappedField
  19. abstract def fieldCreatorString(dbType: DriverType): List[String]

    Permalink

    Given the driver type, return a list of statements to create the columns in the database

    Given the driver type, return a list of statements to create the columns in the database

    Definition Classes
    BaseMappedField
  20. abstract def fieldCreatorString(dbType: DriverType, colName: String): String

    Permalink

    Given the driver type, return the string required to create the column in the database

    Given the driver type, return the string required to create the column in the database

    Definition Classes
    BaseMappedField
  21. abstract def findFor(key: KeyedForeignType): List[OwnerType]

    Permalink
  22. abstract def findFor(key: KeyType): List[OwnerType]

    Permalink
  23. abstract def get: ValueType

    Permalink
    Definition Classes
    ValueHolder
  24. abstract def jdbcFriendly: AnyRef

    Permalink

    Get a JDBC friendly object for the part of this field that maps to the first column in the database

    Get a JDBC friendly object for the part of this field that maps to the first column in the database

    Definition Classes
    BaseMappedField
  25. abstract def jdbcFriendly(field: String): AnyRef

    Permalink

    Get a JDBC friendly representation of the named field (this is used for MappedFields that correspond to more than 1 column in the database.)

    Get a JDBC friendly representation of the named field (this is used for MappedFields that correspond to more than 1 column in the database.)

    field

    -- the name of the field being mapped to

    Definition Classes
    BaseMappedField
  26. abstract def name: String

    Permalink
    Definition Classes
    ReadableField
  27. abstract def set(in: ValueType): ValueType

    Permalink
    Definition Classes
    Settable
  28. abstract def setFilter: List[(ValueType) ⇒ ValueType]

    Permalink
    Definition Classes
    SettableField
  29. abstract def targetSQLType: Int

    Permalink

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    Definition Classes
    BaseMappedField
  30. abstract def targetSQLType(field: String): Int

    Permalink

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    Definition Classes
    BaseMappedField
  31. abstract def toForm: Box[NodeSeq]

    Permalink
    Definition Classes
    SettableField
  32. abstract def validate: List[FieldError]

    Permalink
    Definition Classes
    SettableField
  33. abstract def validations: List[(ValueType) ⇒ List[FieldError]]

    Permalink
    Definition Classes
    SettableField

Concrete 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 _dbColumnNameLC: String

    Permalink

    The forced lower case column names

    The forced lower case column names

    Definition Classes
    BaseMappedField
  5. def allFields: Seq[BaseField]

    Permalink
    Definition Classes
    BaseField → FieldContainer
  6. def asHtml: NodeSeq

    Permalink
    Definition Classes
    ReadableField → Bindable
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asJs: List[(String, JsExp)]

    Permalink
    Definition Classes
    BaseMappedField
  9. def asJsonField: Box[JField]

    Permalink
    Definition Classes
    BaseMappedField
  10. def atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType

    Permalink
    Definition Classes
    Settable
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def dbAutogenerated_?: Boolean

    Permalink

    Is the primary key autogenerated

    Is the primary key autogenerated

    Definition Classes
    BaseMappedField
  13. def dbDisplay_?: Boolean

    Permalink
    Definition Classes
    BaseMappedField
  14. def dbIgnoreSQLType_?: Boolean

    Permalink

    Do we ignore the targetSQLType for setObject

    Do we ignore the targetSQLType for setObject

    Definition Classes
    BaseMappedField
  15. def dbIncludeInForm_?: Boolean

    Permalink
    Definition Classes
    BaseMappedField
  16. def dbNotNull_?: Boolean

    Permalink

    Set to true if the field should be created as NOT NULL

    Set to true if the field should be created as NOT NULL

    Definition Classes
    BaseMappedFieldMixableMappedField
  17. def displayHtml: NodeSeq

    Permalink
    Definition Classes
    ReadableField
  18. def displayName: String

    Permalink
    Definition Classes
    ReadableField
  19. def displayNameHtml: Box[NodeSeq]

    Permalink
    Definition Classes
    ReadableField
  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def fieldId: Option[NodeSeq]

    Permalink
    Definition Classes
    SettableField
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def formElemAttrs: Seq[http.SHtml.ElemAttr]

    Permalink

    What form elements are we going to add to this field?

    What form elements are we going to add to this field?

    Definition Classes
    BaseMappedField
  25. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def helpAsHtml: Box[NodeSeq]

    Permalink
    Definition Classes
    SettableField
  28. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def performAtomicOperation[T](f: ⇒ T): T

    Permalink
    Definition Classes
    Settable
  33. def renderJs_?: Boolean

    Permalink
    Definition Classes
    BaseMappedField
  34. def required_?: Boolean

    Permalink
    Definition Classes
    SettableField
  35. def shouldDisplay_?: Boolean

    Permalink
    Definition Classes
    ReadableField
  36. def show_?: Boolean

    Permalink
    Definition Classes
    SettableField
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def uniqueFieldId: Box[String]

    Permalink
    Definition Classes
    FieldIdentifier
  40. def uploadField_?: Boolean

    Permalink
    Definition Classes
    SettableField
  41. final def wait(): Unit

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

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

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

Inherited from BaseMappedField

Inherited from Serializable

Inherited from Serializable

Inherited from MixableMappedField

Inherited from BaseField

Inherited from FieldContainer

Inherited from SettableField

Inherited from SettableValueHolder

Inherited from Settable

Inherited from ReadableField

Inherited from ValueHolder

Inherited from FieldIdentifier

Inherited from Bindable

Inherited from SelectableField

Inherited from AnyRef

Inherited from Any

Ungrouped