trait BaseForeignKey extends BaseMappedField
A trait that defines foreign key references
- Alphabetic
- By Inheritance
- BaseForeignKey
- BaseMappedField
- Serializable
- Serializable
- MixableMappedField
- BaseField
- FieldContainer
- SettableField
- SettableValueHolder
- Settable
- ReadableField
- ValueHolder
- FieldIdentifier
- Bindable
- SelectableField
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- abstract type KeyType
- abstract type KeyedForeignType <: KeyedMapper[KeyType, KeyedForeignType]
- abstract type OwnerType <: Mapper[OwnerType]
-
abstract
type
TheOwnerType <: Mapper[TheOwnerType]
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
-
abstract
type
ValueType
- Definition Classes
- ValueHolder
Abstract Value Members
-
abstract
def
_toForm: Box[NodeSeq]
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
-
abstract
def
asJsExp: JsExp
- Definition Classes
- BaseMappedField
-
abstract
def
asJsonValue: Box[JValue]
- Definition Classes
- BaseMappedField
-
abstract
def
asString: String
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
- BaseMappedField → MixableMappedField
-
abstract
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
- BaseMappedField
-
abstract
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.
-
abstract
def
dbAddedIndex: Box[() ⇒ Unit]
Called when a column has indexed via Schemifier
Called when a column has indexed via Schemifier
- Definition Classes
- BaseMappedField
-
abstract
def
dbColumnCount: Int
The number of database columns that this field represents
The number of database columns that this field represents
- Definition Classes
- BaseMappedField → MixableMappedField
-
abstract
def
dbColumnName: String
- Definition Classes
- BaseMappedField
-
abstract
def
dbColumnNames(in: String): List[String]
- Definition Classes
- BaseMappedField
-
abstract
def
dbForeignKey_?: Boolean
Is the field a foreign key reference
Is the field a foreign key reference
- Definition Classes
- BaseMappedField → MixableMappedField
-
abstract
def
dbIndexed_?: Boolean
Should the field be indexed?
Should the field be indexed?
- Definition Classes
- BaseMappedField → MixableMappedField
- abstract def dbKeyToColumn: BaseMappedField
-
abstract
def
dbKeyToTable: BaseMetaMapper
get the object referred to by this foreign key
-
abstract
def
dbPrimaryKey_?: Boolean
Is the field the table's primary key
Is the field the table's primary key
- Definition Classes
- BaseMappedField → MixableMappedField
-
abstract
def
dbSelectString: String
- Definition Classes
- SelectableField
-
abstract
def
defined_?: Boolean
Is the key defined?
-
abstract
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
- BaseMappedField
-
abstract
def
fieldCreatorString(dbType: DriverType): List[String]
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
-
abstract
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
- BaseMappedField
- abstract def findFor(key: KeyedForeignType): List[OwnerType]
- abstract def findFor(key: KeyType): List[OwnerType]
-
abstract
def
get: ValueType
- Definition Classes
- ValueHolder
-
abstract
def
jdbcFriendly: AnyRef
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
-
abstract
def
jdbcFriendly(field: String): AnyRef
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
-
abstract
def
name: String
- Definition Classes
- ReadableField
-
abstract
def
set(in: ValueType): ValueType
- Definition Classes
- Settable
-
abstract
def
setFilter: List[(ValueType) ⇒ ValueType]
- Definition Classes
- SettableField
-
abstract
def
targetSQLType: Int
Get the JDBC SQL Type for this field
Get the JDBC SQL Type for this field
- Definition Classes
- BaseMappedField
-
abstract
def
targetSQLType(field: String): Int
Get the JDBC SQL Type for this field
Get the JDBC SQL Type for this field
- Definition Classes
- BaseMappedField
-
abstract
def
toForm: Box[NodeSeq]
- Definition Classes
- SettableField
-
abstract
def
validate: List[FieldError]
- Definition Classes
- SettableField
-
abstract
def
validations: List[(ValueType) ⇒ List[FieldError]]
- Definition Classes
- SettableField
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
_dbColumnNameLC: String
The forced lower case column names
The forced lower case column names
- Definition Classes
- BaseMappedField
-
def
allFields: Seq[BaseField]
- Definition Classes
- BaseField → FieldContainer
-
def
asHtml: NodeSeq
- Definition Classes
- ReadableField → Bindable
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJs: List[(String, JsExp)]
- Definition Classes
- BaseMappedField
-
def
asJsonField: Box[JField]
- Definition Classes
- BaseMappedField
-
def
atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType
- Definition Classes
- Settable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dbAutogenerated_?: Boolean
Is the primary key autogenerated
Is the primary key autogenerated
- Definition Classes
- BaseMappedField
-
def
dbDisplay_?: Boolean
- Definition Classes
- BaseMappedField
-
def
dbIgnoreSQLType_?: Boolean
Do we ignore the targetSQLType for setObject
Do we ignore the targetSQLType for setObject
- Definition Classes
- BaseMappedField
-
def
dbIncludeInForm_?: Boolean
- Definition Classes
- BaseMappedField
-
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
- BaseMappedField → MixableMappedField
-
def
displayHtml: NodeSeq
- Definition Classes
- ReadableField
-
def
displayName: String
- Definition Classes
- ReadableField
-
def
displayNameHtml: Box[NodeSeq]
- Definition Classes
- ReadableField
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fieldId: Option[NodeSeq]
- Definition Classes
- SettableField
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
helpAsHtml: Box[NodeSeq]
- Definition Classes
- SettableField
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
performAtomicOperation[T](f: ⇒ T): T
- Definition Classes
- Settable
-
def
renderJs_?: Boolean
- Definition Classes
- BaseMappedField
-
def
required_?: Boolean
- Definition Classes
- SettableField
-
def
shouldDisplay_?: Boolean
- Definition Classes
- ReadableField
-
def
show_?: Boolean
- Definition Classes
- SettableField
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uniqueFieldId: Box[String]
- Definition Classes
- FieldIdentifier
-
def
uploadField_?: Boolean
- Definition Classes
- SettableField
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )