Packages

c

net.liftweb.mapper

MappedLongForeignKey

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MappedLongForeignKey
  2. BaseForeignKey
  3. MappedForeignKey
  4. LifecycleCallbacks
  5. MappedLong
  6. MappedField
  7. Equals
  8. PSettableValueHolder
  9. PValueHolder
  10. BaseOwnedMappedField
  11. BaseMappedField
  12. Serializable
  13. Serializable
  14. MixableMappedField
  15. BaseField
  16. FieldContainer
  17. SettableField
  18. SettableValueHolder
  19. Settable
  20. ReadableField
  21. ValueHolder
  22. FieldIdentifier
  23. Bindable
  24. SelectableField
  25. TypedField
  26. AnyRef
  27. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MappedLongForeignKey(theOwner: T, _foreignMeta: ⇒ KeyedMetaMapper[Long, O])

Type Members

  1. abstract type FieldType <: Long
    Definition Classes
    MappedForeignKey
  2. type KeyType = Long
    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  3. type KeyedForeignType = O
    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  4. type OwnerType = T
    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  5. type TheOwnerType = T

    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
    MappedFieldMixableMappedField
  6. type ValueType = Long

    Will be set to the type of the field

    Will be set to the type of the field

    Definition Classes
    MappedFieldPValueHolderValueHolder

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def :=(v: Long): Long
    Definition Classes
    MappedField
  4. def :=[Q](v: Q)(implicit arg0: (Q) ⇒ Long): Long
    Definition Classes
    MappedField
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def _dbColumnNameLC: String

    The forced lower case column names

    The forced lower case column names

    Definition Classes
    BaseMappedField
  7. def _toForm: Box[Elem]

    Create an input field for the item

    Create an input field for the item

    Definition Classes
    MappedForeignKeyMappedFieldBaseMappedField
  8. def actualField(actual: T): MappedField[Long, T]

    Get the field that this prototypical field represents

    Get the field that this prototypical field represents

    actual

    the object to find the field on

    Definition Classes
    MappedField
  9. def afterCreate: Unit
    Definition Classes
    LifecycleCallbacks
  10. def afterDelete: Unit
    Definition Classes
    LifecycleCallbacks
  11. def afterSave: Unit
    Definition Classes
    LifecycleCallbacks
  12. def afterUpdate: Unit
    Definition Classes
    LifecycleCallbacks
  13. def afterValidation: Unit
    Definition Classes
    LifecycleCallbacks
  14. def afterValidationOnCreate: Unit
    Definition Classes
    LifecycleCallbacks
  15. def afterValidationOnUpdate: Unit
    Definition Classes
    LifecycleCallbacks
  16. def allFields: Seq[BaseField]
    Definition Classes
    BaseFieldFieldContainer
  17. def appendFieldId(in: Elem): Elem

    If the field has a defined fieldId, append it

    If the field has a defined fieldId, append it

    Attributes
    protected
    Definition Classes
    MappedField
  18. def apply(v: O): T

    Set the value from an instance of the foreign mapper class.

    Set the value from an instance of the foreign mapper class. obj will be set to Full(v)

    returns

    the Mapper containing this field

    Definition Classes
    MappedForeignKey
  19. def apply(v: Box[O]): T

    Set the value from a possible instance of the foreign mapper class.

    Set the value from a possible instance of the foreign mapper class. v will be cached in obj. If v is Empty, set the value to defaultValue (-1)

    returns

    the Mapper containing this field

    Definition Classes
    MappedForeignKey
  20. def apply(v: Long): T
    Definition Classes
    MappedField
  21. def apply[Q](v: Q)(implicit arg0: (Q) ⇒ Long): T
    Definition Classes
    MappedField
  22. def asHtml: Node

    Default read-only rendering of field

    Default read-only rendering of field

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedFieldReadableFieldBindable
  23. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  24. def asJs: List[(String, JsExp)]
    Definition Classes
    BaseMappedField
  25. def asJsExp: JsExp
  26. def asJsonField: Box[JField]
    Definition Classes
    BaseMappedField
  27. def asJsonValue: Box[JValue]
  28. def asSafeJs(obs: Box[KeyObfuscator]): JsExp
  29. def asString: String

    Return the field name and field value, delimited by an '='

    Return the field name and field value, delimited by an '='

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  30. def atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType

    Perform an atomic update of this Settable.

    Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

    Definition Classes
    Settable
  31. def beforeCreate: Unit
    Definition Classes
    LifecycleCallbacks
  32. def beforeDelete: Unit
    Definition Classes
    LifecycleCallbacks
  33. def beforeSave: Unit

    This method, which gets called when the mapper class is going to be saved, sets the field's value from obj if it's set to the default (!defined_?).

    This method, which gets called when the mapper class is going to be saved, sets the field's value from obj if it's set to the default (!defined_?). Overrides LifecycleCallbacks.beforeSave

    Definition Classes
    MappedForeignKeyLifecycleCallbacks
  34. def beforeUpdate: Unit
    Definition Classes
    LifecycleCallbacks
  35. def beforeValidation: Unit
    Definition Classes
    LifecycleCallbacks
  36. def beforeValidationOnCreate: Unit
    Definition Classes
    LifecycleCallbacks
  37. def beforeValidationOnUpdate: Unit
    Definition Classes
    LifecycleCallbacks
  38. def box: Box[Long]
  39. def buildSetActualValue(accessor: Method, data: AnyRef, columnName: String): (T, AnyRef) ⇒ Unit
    Definition Classes
    MappedLongMappedField
  40. def buildSetBooleanValue(accessor: Method, columnName: String): (T, Boolean, Boolean) ⇒ Unit
    Definition Classes
    MappedLongMappedField
  41. def buildSetDateValue(accessor: Method, columnName: String): (T, Date) ⇒ Unit
    Definition Classes
    MappedLongMappedField
  42. def buildSetLongValue(accessor: Method, columnName: String): (T, Long, Boolean) ⇒ Unit
    Definition Classes
    MappedLongMappedField
  43. def buildSetStringValue(accessor: Method, columnName: String): (T, String) ⇒ Unit
    Definition Classes
    MappedLongMappedField
  44. def cached_?: Boolean

    Is the obj field cached

    Is the obj field cached

    Definition Classes
    MappedForeignKey
  45. def calcFieldName: String
    Definition Classes
    MappedField
  46. def canEqual(that: Any): Boolean
    Definition Classes
    MappedField → Equals
  47. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def convertToJDBCFriendly(value: Long): AnyRef
    Definition Classes
    MappedField
  49. def dbAddedColumn: Box[() ⇒ Unit]

    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
    MappedFieldBaseMappedField
  50. def dbAddedForeignKey: Box[() ⇒ Unit]

    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.

    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  51. def dbAddedIndex: Box[() ⇒ Unit]

    Called when a column has indexed via Schemifier

    Called when a column has indexed via Schemifier

    Definition Classes
    MappedFieldBaseMappedField
  52. def dbAutogenerated_?: Boolean

    Is the primary key autogenerated

    Is the primary key autogenerated

    Definition Classes
    BaseMappedField
  53. def dbColumnCount: Int

    The number of database columns that this field represents

    The number of database columns that this field represents

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  54. def dbColumnName: String
    Definition Classes
    MappedFieldBaseMappedField
  55. def dbColumnNames(in: String): List[String]
    Definition Classes
    MappedFieldBaseMappedField
  56. def dbDisplay_?: Boolean
    Definition Classes
    BaseMappedField
  57. def dbFieldClass: Class[Long]

    What is the real class that corresponds to FieldType

    What is the real class that corresponds to FieldType

    Definition Classes
    MappedLongTypedField
  58. def dbForeignKey_?: Boolean

    Is the field a foreign key reference

    Is the field a foreign key reference

    Definition Classes
    MappedLongForeignKeyMappedFieldBaseMappedFieldMixableMappedField
  59. def dbIgnoreSQLType_?: Boolean

    Do we ignore the targetSQLType for setObject

    Do we ignore the targetSQLType for setObject

    Definition Classes
    BaseMappedField
  60. def dbIncludeInForm_?: Boolean
    Definition Classes
    BaseMappedField
  61. def dbIndexFieldIndicatesSaved_?: Boolean

    override this method in indexed fields to indicate that the field has been saved

    override this method in indexed fields to indicate that the field has been saved

    Definition Classes
    MappedField
  62. def dbIndexed_?: Boolean

    Should the field be indexed?

    Should the field be indexed?

    Definition Classes
    MappedLongForeignKeyMappedFieldBaseMappedFieldMixableMappedField
  63. def dbKeyToColumn: MappedField[Long, O] with IndexedField[Long]
    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  64. lazy val dbKeyToTable: KeyedMetaMapper[Long, O]

    get the object referred to by this foreign key

    get the object referred to by this foreign key

    Definition Classes
    MappedLongForeignKeyBaseForeignKeyMappedForeignKey
  65. def dbNotNull_?: Boolean

    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
    MappedFieldBaseMappedFieldMixableMappedField
  66. def dbPrimaryKey_?: Boolean

    Is the field the table's primary key

    Is the field the table's primary key

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  67. def dbSelectString: String
    Definition Classes
    MappedFieldSelectableField
  68. def defaultValue: Long

    The default value for the field

    The default value for the field

    Definition Classes
    MappedLongTypedField
  69. def defined_?: Boolean

    Is the key defined?

    Is the key defined?

    Definition Classes
    MappedLongForeignKeyBaseForeignKeyMappedForeignKey
  70. def dirty_?(b: Boolean): Unit

    Make the field dirty

    Make the field dirty

    Attributes
    protected
    Definition Classes
    MappedForeignKeyMappedField
  71. def dirty_?: Boolean

    Is the field dirty (has it been changed since the record was loaded from the database

    Is the field dirty (has it been changed since the record was loaded from the database

    Definition Classes
    MappedField
  72. def displayHtml: NodeSeq
    Definition Classes
    ReadableField
  73. def displayName: String

    The display name of this field (e.g., "First Name")

    The display name of this field (e.g., "First Name")

    Definition Classes
    MappedFieldReadableField
  74. def displayNameHtml: Box[NodeSeq]
    Definition Classes
    ReadableField
  75. def doField(inst: T, meth: Method, func: PartialFunction[MappedField[Long, T], Unit]): Unit
    Attributes
    protected
    Definition Classes
    MappedField
  76. def doneWithSave(): Unit

    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
    MappedLongBaseMappedField
  77. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  78. def equals(other: Any): Boolean

    Does the "right thing" comparing mapped fields

    Does the "right thing" comparing mapped fields

    Definition Classes
    MappedForeignKeyMappedField → Equals → AnyRef → Any
  79. def fieldCreatorString(dbType: DriverType, colName: String): String

    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
    MappedLongForeignKeyMappedLongMappedFieldBaseMappedField
  80. def fieldCreatorString(dbType: DriverType): List[String]

    Given the driver type, return a list of SQL creation strings for the columns represented by this field

    Given the driver type, return a list of SQL creation strings for the columns represented by this field

    Definition Classes
    MappedFieldBaseMappedField
  81. def fieldId: Option[NodeSeq]

    A unique 'id' for the field for form generation

    A unique 'id' for the field for form generation

    Definition Classes
    SettableField
  82. val fieldOwner: T
    Definition Classes
    MappedLongMappedField
  83. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  84. def findFor(key: KeyedForeignType): List[OwnerType]
    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  85. def findFor(key: KeyType): List[OwnerType]
    Definition Classes
    MappedLongForeignKeyBaseForeignKey
  86. def foreign: Box[O]

    Some people prefer the name foreign to materialize the foreign reference.

    Some people prefer the name foreign to materialize the foreign reference. This is a proxy to the obj method.

    Definition Classes
    MappedForeignKey
  87. def foreignMeta: KeyedMetaMapper[Long, O]

    What's the MetaMapper for the foreign key

    What's the MetaMapper for the foreign key

    Definition Classes
    MappedLongForeignKeyMappedForeignKey
  88. def formElemAttrs: Seq[http.SHtml.ElemAttr]

    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
  89. def formInputType: String

    When building the form field, what's the input element's type attribute.

    When building the form field, what's the input element's type attribute. Defaults to 'text', but change to 'email' or other HTML5 values.

    Attributes
    protected
    Definition Classes
    MappedField
  90. def get: Long

    Convert the field to its "context free" type (e.g., String, Int, Long, etc.) If there are no read permissions, the value will be obscured

    Convert the field to its "context free" type (e.g., String, Int, Long, etc.) If there are no read permissions, the value will be obscured

    Definition Classes
    MappedFieldValueHolder
  91. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  92. def getField(inst: T, meth: Method): MappedField[Long, T]
    Attributes
    protected
    Definition Classes
    MappedField
  93. def hashCode(): Int
    Definition Classes
    MappedField → AnyRef → Any
  94. def helpAsHtml: Box[NodeSeq]
    Definition Classes
    SettableField
  95. def i_is_!: Long

    The actual value of the field

    The actual value of the field

    Attributes
    protected
    Definition Classes
    MappedLongMappedField
  96. def i_obscure_!(in: Long): Long

    Obscure the incoming value to a "safe" value (e.g., if there are not enough rights to view the entire social security number 123-45-5678, this method might return ***-**-*678

    Obscure the incoming value to a "safe" value (e.g., if there are not enough rights to view the entire social security number 123-45-5678, this method might return ***-**-*678

    Attributes
    protected
    Definition Classes
    MappedLongMappedField
  97. final def i_set_!(value: Long): Long
    Attributes
    protected
    Definition Classes
    MappedField
  98. def i_was_!: Long

    The value of the field when it was pulled from the DB

    The value of the field when it was pulled from the DB

    Attributes
    protected
    Definition Classes
    MappedLongMappedField
  99. def ignoreField_?: Boolean

    Should the field be ignored by the OR Mapper?

    Should the field be ignored by the OR Mapper?

    Definition Classes
    MappedField
  100. def immutableMsg: NodeSeq
    Definition Classes
    MappedForeignKey
  101. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  102. def jdbcFriendly: Long

    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
    MappedLongForeignKeyMappedLongMappedFieldBaseMappedField
  103. def jdbcFriendly(field: String): Long

    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
    MappedLongForeignKeyMappedLongMappedFieldBaseMappedField
  104. def manifest: scala.reflect.api.JavaUniverse.TypeTag[Long]
    Definition Classes
    MappedLongMappedField
  105. final def name: String

    The name of this field

    The name of this field

    Definition Classes
    MappedFieldReadableField
  106. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  107. def notNullAppender(): String
    Definition Classes
    MappedField
  108. final def notify(): Unit
    Definition Classes
    AnyRef
  109. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  110. def obj: Box[O]

    Load and cache the record that this field references

    Load and cache the record that this field references

    Definition Classes
    MappedForeignKey
  111. def performAtomicOperation[T](f: ⇒ T): T

    Perform an atomic operation on the Settable.

    Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

    Definition Classes
    Settable
  112. def primeObj(obj: Box[O]): Unit

    Prime the reference of this FK reference

    Prime the reference of this FK reference

    Definition Classes
    MappedForeignKey
  113. def readPermission_?: Boolean

    Given the current execution state, can the field be read?

    Given the current execution state, can the field be read?

    Definition Classes
    MappedLongMappedField
  114. def real_convertToJDBCFriendly(value: Long): AnyRef
    Definition Classes
    MappedLongMappedField
  115. def real_i_set_!(value: Long): Long

    Must be implemented to store the value of the field

    Must be implemented to store the value of the field

    Attributes
    protected
    Definition Classes
    MappedLongMappedField
  116. def renderJs_?: Boolean
    Definition Classes
    BaseMappedField
  117. def required_?: Boolean

    Is the Field required (and will have a style designating it as such)

    Is the Field required (and will have a style designating it as such)

    Definition Classes
    SettableField
  118. def resetDirty: Unit
    Definition Classes
    MappedField
  119. def runFilters(in: Long, filter: List[(Long) ⇒ Long]): Long
    Definition Classes
    MappedField
  120. final def safe_?: Boolean

    Are we in "safe" mode (i.e., the value of the field can be read or written without any security checks.)

    Are we in "safe" mode (i.e., the value of the field can be read or written without any security checks.)

    Definition Classes
    MappedField
  121. def set(value: Long): Long

    Set the field to the value

    Set the field to the value

    Definition Classes
    MappedFieldSettable
  122. def setFilter: List[(Long) ⇒ Long]

    A list of functions that transform the value before it is set.

    A list of functions that transform the value before it is set. The transformations are also applied before the value is used in a query. Typical applications of this are trimming and/or toLowerCase-ing strings

    Definition Classes
    MappedFieldSettableField
  123. def setFromAny(in: Any): Long

    Attempt to figure out what the incoming value is and set the field to that value.

    Attempt to figure out what the incoming value is and set the field to that value. Return true if the value could be assigned

    Definition Classes
    MappedLongForeignKeyMappedLongMappedField
  124. def set_?(value: Box[Long]): Box[Long]

    Set the field to the Box value if the Box is Full

    Set the field to the Box value if the Box is Full

    Definition Classes
    MappedField
  125. def shouldDisplay_?: Boolean

    Given the current context, should this field be displayed

    Given the current context, should this field be displayed

    Definition Classes
    ReadableField
  126. def show_?: Boolean

    Given the current state of things, should this field be shown

    Given the current state of things, should this field be shown

    Definition Classes
    SettableField
  127. def sourceFieldInfo(): SourceFieldInfo { type T = Long }
    Definition Classes
    MappedField
  128. def sourceInfoMetadata(): SourceFieldMetadata { type ST = Long }

    Get the source field metadata for the field

    Get the source field metadata for the field

    returns

    the source field metadata for the field

    Definition Classes
    MappedLongMappedField
  129. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  130. def targetSQLType: Int

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    Definition Classes
    MappedLongMappedFieldBaseMappedField
  131. def targetSQLType(field: String): Int

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    Definition Classes
    MappedFieldBaseMappedField
  132. def toForm: Box[NodeSeq]

    Create an input field for the item

    Create an input field for the item

    Definition Classes
    MappedFieldSettableField
  133. def toFormAppendedAttributes: MetaData
    Definition Classes
    MappedField
  134. def toString(): String
    Definition Classes
    MappedLongForeignKeyMappedField → AnyRef → Any
  135. def uniqueFieldId: Box[String]

    The unique field id is the field name and the mapper name

    The unique field id is the field name and the mapper name

    Definition Classes
    MappedFieldFieldIdentifier
  136. def update[Q](v: Q)(implicit arg0: (Q) ⇒ Long): Unit

    Assignment from the underlying type.

    Assignment from the underlying type. It's ugly, but:
    field() = new_value
    field set new_value
    field.set(new_value)
    are all the same

    Definition Classes
    MappedField
  137. def uploadField_?: Boolean

    Is this an upload field so that a form that includes this field must be multi-part mime

    Is this an upload field so that a form that includes this field must be multi-part mime

    Definition Classes
    SettableField
  138. val valHasObj: (Long) ⇒ List[FieldError]

    A validation function that checks that obj is nonempty

    A validation function that checks that obj is nonempty

    Definition Classes
    MappedForeignKey
  139. def validSelectValues: Box[List[(Long, String)]]
    Definition Classes
    MappedForeignKey
  140. def validate: List[FieldError]

    Validate this field and return a list of Validation Issues

    Validate this field and return a list of Validation Issues

    Definition Classes
    MappedFieldSettableField
  141. def validations: List[(Long) ⇒ List[FieldError]]
    Definition Classes
    MappedFieldSettableField
  142. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  143. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  144. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  145. def was: Long

    What value was the field's value when it was pulled from the DB?

    What value was the field's value when it was pulled from the DB?

    Definition Classes
    MappedField
  146. def writePermission_?: Boolean

    Given the current execution state, can the field be written?

    Given the current execution state, can the field be written?

    Definition Classes
    MappedLongMappedField

Inherited from BaseForeignKey

Inherited from MappedForeignKey[Long, T, O]

Inherited from LifecycleCallbacks

Inherited from MappedLong[T]

Inherited from MappedField[Long, T]

Inherited from Equals

Inherited from PSettableValueHolder[Long]

Inherited from PValueHolder[Long]

Inherited from BaseOwnedMappedField[T]

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 TypedField[Long]

Inherited from AnyRef

Inherited from Any

Ungrouped