net.liftweb.mapper.IndexedField

trait IndexedField

trait IndexedField[O]

 extends BaseIndexedField with ScalaObject




Source: MappedField.scala(581)

Direct Known Subclasses

MappedLongIndex, MappedStringIndex, MappedIntIndex,

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

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
asJs.. def asJs List[(String, JsExp)] BaseMappedField
clone.. protected def clone Object AnyRef
convertKey.. abstract def convertKey(in : Object) Box[O]
convertKey.. abstract def convertKey(in : Int) Box[O]
convertKey.. abstract def convertKey(in : Long) Box[O]
convertKey.. abstract def convertKey(in : String) Box[O]
dbAddedColumn.. abstract def dbAddedColumn
Called when a column has been added to the database via Schemifier
Box[() => Unit] BaseMappedField
dbAddedIndex.. abstract def dbAddedIndex
Called when a column has indexed via Schemifier
Box[() => Unit] BaseMappedField
dbColumnNames.. abstract def dbColumnNames(in : String) List[String] BaseMappedField
doneWithSave.. protected[mapper] abstract def doneWithSave
Called after the field is saved to the database
Unit BaseMappedField
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
fieldCreatorString.. abstract def fieldCreatorString(dbType : DriverType, colName : String)
Given the driver type, return the string required to create the column in the database
String BaseMappedField
fieldCreatorString.. abstract def fieldCreatorString(dbType : DriverType)
Given the driver type, return a list of statements to create the columns in the database
List[String] BaseMappedField
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 BaseMappedField
makeKeyJDBCFriendly.. abstract def makeKeyJDBCFriendly(in : O) 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 BaseMappedField
toString.. def toString String AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.