net.liftweb.mapper.BaseMappedField

trait BaseMappedField

trait BaseMappedField

 extends SelectableField with Bindable with MixableMappedField with ScalaObject


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


Source: MappedField.scala(70)

Direct Known Subclasses

BaseForeignKey, DBIndexed, BaseOwnedMappedField, BaseIndexedField,

 Fields

_dbColumnNameLC.. final def _dbColumnNameLC
The forced lower case column names
String
_toForm.. abstract def _toForm
This is where the instance creates its "toForm" stuff [details]
The actual toForm method wraps the information based on mode.
Box[NodeSeq]
allFields.. def allFields Seq[BaseField] BaseField
asHtml.. abstract def asHtml NodeSeq
asJsExp.. abstract def asJsExp JsExp
asJsonField.. def asJsonField Box[JField]
asJsonValue.. abstract def asJsonValue Box[JValue]
asString.. abstract def asString
Convert the field to its name/value pair (e [details]
g., name=David)
String
dbAutogenerated_?.. def dbAutogenerated_?
Is the primary key autogenerated
Boolean
dbColumnCount.. abstract def dbColumnCount
The number of database columns that this field represents
Int
dbColumnName.. abstract def dbColumnName String
dbDisplay_?.. def dbDisplay_? Boolean
dbForeignKey_?.. abstract def dbForeignKey_?
Is the field a foreign key reference
Boolean
dbIgnoreSQLType_?.. def dbIgnoreSQLType_?
Do we ignore the targetSQLType for setObject
Boolean
dbIncludeInForm_?.. def dbIncludeInForm_? Boolean
dbIndexed_?.. abstract def dbIndexed_?
Should the field be indexed?
Boolean
dbNotNull_?.. def dbNotNull_?
Set to true if the field should be created as NOT NULL
Boolean
dbPrimaryKey_?.. abstract def dbPrimaryKey_?
Is the field the table's primary key
Boolean
dbSelectString.. abstract def dbSelectString String SelectableField
displayHtml.. def displayHtml NodeSeq ReadableField
displayName.. def displayName String ReadableField
displayNameHtml.. def displayNameHtml Box[NodeSeq] ReadableField
fieldId.. def fieldId Option[NodeSeq] SettableField
get.. abstract def get ValueType ValueHolder
helpAsHtml.. def helpAsHtml Box[NodeSeq] SettableField
is.. abstract def is ValueType ValueHolder
jdbcFriendly.. abstract def jdbcFriendly
Get a JDBC friendly object for the part of this field that maps to the first column in the database
Object
name.. abstract def name String ReadableField
renderJs_?.. def renderJs_? Boolean
required_?.. def required_? Boolean SettableField
show_?.. def show_? Boolean SettableField
targetSQLType.. abstract def targetSQLType
Get the JDBC SQL Type for this field
Int
toForm.. abstract def toForm Box[NodeSeq] SettableField
uniqueFieldId.. def uniqueFieldId Box[String] FieldIdentifier
uploadField_?.. def uploadField_? Boolean SettableField
validate.. abstract def validate List[FieldError] SettableField

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
asJs.. def asJs List[(String, JsExp)]
clone.. protected def clone Object AnyRef
dbAddedColumn.. abstract def dbAddedColumn
Called when a column has been added to the database via Schemifier
Box[() => Unit]
dbAddedIndex.. abstract def dbAddedIndex
Called when a column has indexed via Schemifier
Box[() => Unit]
dbColumnNames.. abstract def dbColumnNames(in : String) List[String]
doneWithSave.. protected[mapper] abstract def doneWithSave
Called after the field is saved to the database
Unit
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
fieldCreatorString.. abstract def fieldCreatorString(dbType : DriverType)
Given the driver type, return a list of statements to create the columns in the database
List[String]
fieldCreatorString.. abstract def fieldCreatorString(dbType : DriverType, colName : String)
Given the driver type, return the string required to create the column in the database
String
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
jdbcFriendly.. abstract def jdbcFriendly(field : String)
Get a JDBC friendly representation of the named field (this is used for MappedFields that correspond to more than 1 column in the database [details]
)
param
field - -- the name of the field being mapped to
Object
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
set.. abstract def set(arg0 : ValueType) ValueType SettableValueHolder
setFilter.. protected abstract def setFilter List[(ValueType) => ValueType] SettableField
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
targetSQLType.. abstract def targetSQLType(field : String)
Get the JDBC SQL Type for this field
Int
toString.. def toString String AnyRef
validations.. abstract def validations List[(ValueType) => List[FieldError]] SettableField
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.