net.liftweb.mapper.BaseMappedField

trait BaseMappedField

trait BaseMappedField

 extends SelectableField with Bindable 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(36)

Direct Known Subclasses

BaseIndexedField, DBIndexed, BaseForeignKey, BaseOwnedMappedField,

 Fields

_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]
asHtml.. abstract def asHtml NodeSeq
asJsExp.. abstract def asJsExp JsExp
asString.. abstract def asString
Convert the field to its name/value pair (e [details]
g., name=David)
String
dbColumnCount.. abstract def dbColumnCount
The number of database columns that this field represents
Int
dbColumnName.. abstract def dbColumnName String
dbForeignKey_?.. abstract def dbForeignKey_?
Is the field a foreign key reference
Boolean
dbIndexed_?.. abstract def dbIndexed_?
Should the field be indexed?
Boolean
dbPrimaryKey_?.. abstract def dbPrimaryKey_?
Is the field the table's primary key
Boolean
dbSelectString.. abstract def dbSelectString String SelectableField
displayHtml.. def displayHtml NodeSeq
displayName.. abstract def displayName
The display name of this field (e [details]
g., "First Name")
String
displayNameHtml.. def displayNameHtml Box[NodeSeq]
fieldId.. def fieldId
A unique 'id' for the field for form generation
Option[NodeSeq]
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
The human name of this field
String
renderJs_?.. def renderJs_? Boolean
targetSQLType.. abstract def targetSQLType
Get the JDBC SQL Type for this field
Int
toForm.. abstract def toForm
Create an input field for the item
Box[NodeSeq]
validate.. abstract def validate
Validate this field and return a list of Validation Issues
List[FieldError]

 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
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
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.