| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait LongMappedForeignMapper[T <: Mapper[T], O <: KeyedMapper[Long, O]]
extends
MappedLongForeignKey[T, O] with LifecycleCallbacks
- nafg - Use LongMappedMapper instead, to avoid mixing in MappedLongForeignKey manually. May be folded into it in the future.| _dbColumnNameLC.. |
final def _dbColumnNameLC
The forced lower case column names
|
String | BaseMappedField |
| _toForm.. |
override def _toForm
Create an input field for the item
|
Box[Elem] | MappedForeignKey |
| allFields.. |
def allFields
|
Seq[BaseField] | BaseField |
| asHtml.. |
override def asHtml
|
Node | MappedField |
| asJsExp.. |
def asJsExp
|
JsExp | MappedLong |
| asJsonField.. |
def asJsonField
|
Box[JField] | BaseMappedField |
| asJsonValue.. |
override def asJsonValue
|
Box[JValue] | MappedLongForeignKey |
| asString.. |
def asString
Return the field name and field value, delimited by an '='
|
String | MappedField |
| box.. |
def box
|
Box[Long] | MappedLongForeignKey |
| cached_?.. |
def cached_?
Is the obj field cached
|
Boolean | MappedForeignKey |
| calcFieldName.. |
def calcFieldName
|
String | MappedField |
| can.. |
def can
|
Box[Long] | MappedLongForeignKey |
| dbAutogenerated_?.. |
def dbAutogenerated_?
Is the primary key autogenerated
|
Boolean | BaseMappedField |
| dbColumnCount.. |
def dbColumnCount
The number of database columns that this field represents
|
Int | MappedField |
| dbColumnName.. |
def dbColumnName
|
String | MappedField |
| dbDisplay_?.. |
def dbDisplay_?
|
Boolean | BaseMappedField |
| dbFieldClass.. |
def dbFieldClass
What is the real class that corresponds to FieldType
|
Class[Long] | MappedLong |
| dbForeignKey_?.. |
override def dbForeignKey_?
Is the field a foreign key reference
|
Boolean | MappedLongForeignKey |
| dbIgnoreSQLType_?.. |
def dbIgnoreSQLType_?
Do we ignore the targetSQLType for setObject
|
Boolean | BaseMappedField |
| dbIncludeInForm_?.. |
def dbIncludeInForm_?
|
Boolean | BaseMappedField |
| dbIndexFieldIndicatesSaved_?.. |
def dbIndexFieldIndicatesSaved_?
override this method in indexed fields to indicate that the field has been saved
|
Boolean | MappedField |
| dbIndexed_?.. |
override def dbIndexed_?
Should the field be indexed?
|
Boolean | MappedLongForeignKey |
| dbKeyToColumn.. |
def dbKeyToColumn
|
MappedField[Long, O] with IndexedField[Long] |
MappedLongForeignKey |
| dbKeyToTable.. |
lazy val dbKeyToTable
get the object referred to by this foreign key
|
KeyedMetaMapper[Long, O] | MappedLongForeignKey |
| dbNotNull_?.. |
override def dbNotNull_?
Set to true if the field should be created as NOT NULL
|
Boolean | MappedField |
| dbPrimaryKey_?.. |
def dbPrimaryKey_?
Is the field the table's primary key
|
Boolean | MappedField |
| dbSelectString.. |
def dbSelectString
|
String | MappedField |
| defaultValue.. |
def defaultValue
The default value for the field
|
Long | MappedLong |
| defined_?.. |
def defined_?
Is the key defined?
|
Boolean | MappedLongForeignKey |
| dirty_?.. |
def dirty_?
Is the field dirty (has it been changed since the record was loaded from the database
|
Boolean | MappedField |
| displayHtml.. |
def displayHtml
|
NodeSeq | ReadableField |
| displayName.. |
override def displayName
The display name of this field (e
[details]
g., "First Name")
|
String | MappedField |
| displayNameHtml.. |
def displayNameHtml
|
Box[NodeSeq] | ReadableField |
| fieldId.. |
def fieldId
|
Option[NodeSeq] | SettableField |
| fieldOwner.. |
val fieldOwner
Return the owner of this field
|
T | MappedLong |
| foreign.. |
def foreign
Some people prefer the name foreign to materialize the
foreign reference
[details]
This is a proxy to the obj method.
|
Box[Other] | MappedForeignKey |
| foreignMeta.. |
def foreignMeta
What's the MetaMapper for the foreign key
|
KeyedMetaMapper[Long, O] | MappedLongForeignKey |
| get.. |
def get
An alternative getter
|
FieldType | MappedField |
| helpAsHtml.. |
def helpAsHtml
|
Box[NodeSeq] | SettableField |
| i_is_!.. |
protected def i_is_!
The actual value of the field
|
Long | MappedLong |
| i_was_!.. |
protected def i_was_!
The value of the field when it was pulled from the DB
|
Long | MappedLong |
| ignoreField_?.. |
def ignoreField_?
Should the field be ignored by the OR Mapper?
|
Boolean | MappedField |
| immutableMsg.. |
def immutableMsg
|
NodeSeq | MappedForeignKey |
| is.. |
def is
Convert the field to its "context free" type (e
[details]
g., String, Int, Long, etc.)
If there are no read permissions, the value will be obscured
|
FieldType | MappedField |
| jdbcFriendly.. |
override def jdbcFriendly
Get a JDBC friendly object for the part of this field that maps to the first
column in the database
|
Long | MappedLongForeignKey |
| name.. |
final def name
The name of this field
|
String | MappedField |
| obj.. |
def obj
Load and cache the record that this field references
|
Box[Other] | MappedForeignKey |
| readPermission_?.. |
override def readPermission_?
Given the current execution state, can the field be read?
|
Boolean | MappedLong |
| renderJs_?.. |
def renderJs_?
|
Boolean | BaseMappedField |
| required_?.. |
def required_?
|
Boolean | SettableField |
| safe_?.. |
final def safe_?
Are we in "safe" mode (i
[details]
e., the value of the field can be read or written without any security checks.)
|
Boolean | MappedField |
| show_?.. |
def show_?
|
Boolean | SettableField |
| targetSQLType.. |
def targetSQLType
Get the JDBC SQL Type for this field
|
Int | MappedLong |
| toForm.. |
def toForm
|
Box[NodeSeq] | MappedField |
| toFormAppendedAttributes.. |
def toFormAppendedAttributes
|
MetaData | MappedField |
| uniqueFieldId.. |
override def uniqueFieldId
The unique field id is the field name and the mapper name
|
Box[String] | MappedField |
| uploadField_?.. |
def uploadField_?
|
Boolean | SettableField |
| valHasObj.. |
val valHasObj
|
(Long) => List[FieldError] | |
| validate.. |
def validate
|
List[FieldError] | MappedField |
| was.. |
def was
What value was the field's value when it was pulled from the DB?
|
FieldType | MappedField |
| writePermission_?.. |
override def writePermission_?
Given the current execution state, can the field be written?
|
Boolean | MappedLong |
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| :=.. |
def :=(v : FieldType)
|
FieldType | MappedField |
| :=.. |
def :=[Q](v : Q)(implicit view$3 : (Q) => FieldType)
|
FieldType | MappedField |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| actualField.. |
def actualField(actual : OwnerType)
Get the field that this prototypical field represents
[details]
|
MappedField[FieldType, OwnerType] | MappedField |
| afterCreate.. |
def afterCreate
|
Unit | LifecycleCallbacks |
| afterDelete.. |
def afterDelete
|
Unit | LifecycleCallbacks |
| afterSave.. |
def afterSave
|
Unit | LifecycleCallbacks |
| afterUpdate.. |
def afterUpdate
|
Unit | LifecycleCallbacks |
| afterValidation.. |
def afterValidation
|
Unit | LifecycleCallbacks |
| afterValidationOnCreate.. |
def afterValidationOnCreate
|
Unit | LifecycleCallbacks |
| afterValidationOnUpdate.. |
def afterValidationOnUpdate
|
Unit | LifecycleCallbacks |
| apply.. |
def apply(v : FieldType)
|
OwnerType | MappedField |
| apply.. |
override def apply(f : Box[O])
|
T | |
| apply.. |
def apply[Q](v : Q)(implicit view$2 : (Q) => FieldType)
|
OwnerType | MappedField |
| apply.. |
override def apply(f : O)
|
T | |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| asJs.. |
def asJs
|
List[(String, JsExp)] | BaseMappedField |
| asSafeJs.. |
def asSafeJs(obs : Box[KeyObfuscator])
|
JsExp | MappedLongForeignKey |
| beforeCreate.. |
def beforeCreate
|
Unit | LifecycleCallbacks |
| beforeDelete.. |
def beforeDelete
|
Unit | LifecycleCallbacks |
| beforeSave.. |
override def beforeSave
|
Unit | |
| beforeUpdate.. |
def beforeUpdate
|
Unit | LifecycleCallbacks |
| beforeValidation.. |
def beforeValidation
|
Unit | LifecycleCallbacks |
| beforeValidationOnCreate.. |
def beforeValidationOnCreate
|
Unit | LifecycleCallbacks |
| beforeValidationOnUpdate.. |
def beforeValidationOnUpdate
|
Unit | LifecycleCallbacks |
| buildSetActualValue.. |
def buildSetActualValue(accessor : Method, data : Object, columnName : String)
|
(T, Object) => Unit | MappedLong |
| buildSetBooleanValue.. |
def buildSetBooleanValue(accessor : Method, columnName : String)
|
(T, Boolean, Boolean) => Unit | MappedLong |
| buildSetDateValue.. |
def buildSetDateValue(accessor : Method, columnName : String)
|
(T, Date) => Unit | MappedLong |
| buildSetLongValue.. |
def buildSetLongValue(accessor : Method, columnName : String)
|
(T, Long, Boolean) => Unit | MappedLong |
| buildSetStringValue.. |
def buildSetStringValue(accessor : Method, columnName : String)
|
(T, String) => Unit | MappedLong |
| clone.. |
protected def clone
|
Object | AnyRef |
| convertToJDBCFriendly.. |
final def convertToJDBCFriendly(value : FieldType)
|
Object | MappedField |
| dbAddedColumn.. |
def dbAddedColumn
Called when a column has been added to the database via Schemifier
|
Box[() => Unit] | MappedField |
| dbAddedForeignKey.. |
def dbAddedForeignKey
Called when Schemifier adds a foreign key
[details]
Return a function that will be called when Schemifier
is done with the schemification.
|
Box[() => Unit] | MappedLongForeignKey |
| dbAddedIndex.. |
def dbAddedIndex
Called when a column has indexed via Schemifier
|
Box[() => Unit] | MappedField |
| dbColumnNames.. |
def dbColumnNames(in : String)
|
List[String] | MappedField |
| dirty_?.. |
protected override def dirty_?(b : Boolean)
Make the field dirty
|
Unit | MappedForeignKey |
| doField.. |
protected def doField(inst : OwnerType, meth : Method, func : PartialFunction[MappedField[FieldType, OwnerType], Unit])
|
Unit | MappedField |
| doneWithSave.. |
protected[mapper] override def doneWithSave
Called after the field is saved to the database
|
Unit | MappedLong |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
override def equals(other : Any)
Does the "right thing" comparing mapped fields
|
Boolean | MappedForeignKey |
| fieldCreatorString.. |
def fieldCreatorString(dbType : DriverType)
Given the driver type, return a list of SQL creation strings for the columns represented by this field
|
List[String] | MappedField |
| fieldCreatorString.. |
override def fieldCreatorString(dbType : DriverType, colName : String)
Given the driver type, return the string required to create the column in the database
|
String | MappedLongForeignKey |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| findFor.. |
def findFor(key : O)
|
List[T] | MappedLongForeignKey |
| findFor.. |
def findFor(key : Long)
|
List[T] | MappedLongForeignKey |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| getField.. |
protected def getField(inst : OwnerType, meth : Method)
|
MappedField[FieldType, OwnerType] | MappedField |
| hashCode.. |
override def hashCode
|
Int | MappedField |
| i_obscure_!.. |
protected def i_obscure_!(in : Long)
Obscure the incoming value to a "safe" value (e
[details]
g., if there are
not enough rights to view the entire social security number 123-45-5678, this
method might return ***-**-*678
|
Long | MappedLong |
| i_set_!.. |
protected final def i_set_!(value : FieldType)
|
FieldType | MappedField |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| jdbcFriendly.. |
override 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]
)
|
Long | MappedLongForeignKey |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notNullAppender.. |
def notNullAppender
|
String | MappedField |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| primeObj.. |
def primeObj(obj : Box[Other])
Prime the reference of this FK reference
|
Unit | MappedForeignKey |
| real_convertToJDBCFriendly.. |
def real_convertToJDBCFriendly(value : Long)
|
Object | MappedLong |
| real_i_set_!.. |
protected def real_i_set_!(value : Long)
Must be implemented to store the value of the field
|
Long | MappedLong |
| resetDirty.. |
def resetDirty
|
Unit | MappedField |
| runFilters.. |
def runFilters(in : FieldType, filter : List[(FieldType) => FieldType])
|
FieldType | MappedField |
| set.. |
override def set(v : Long)
Set the field to the value
|
Long | |
| setFilter.. |
protected def setFilter
A list of functions that transform the value before it is set
[details]
The transformations
are also applied before the value is used in a query. Typical applications
of this are trimming and/or toLowerCase-ing strings
|
List[(FieldType) => FieldType] | MappedField |
| setFromAny.. |
override def setFromAny(in : Any)
Attempt to figure out what the incoming value is and set the field to that value
[details]
Return true if
the value could be assigned
|
Long | MappedLongForeignKey |
| set_?.. |
def set_?(value : Box[FieldType])
Set the field to the Box value if the Box is Full
|
Box[FieldType] | MappedField |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| targetSQLType.. |
def targetSQLType(field : String)
Get the JDBC SQL Type for this field
|
Int | MappedField |
| toString.. |
override def toString
|
String | MappedLongForeignKey |
| update.. |
def update[Q](v : Q)(implicit view$1 : (Q) => FieldType)
Assignment from the underlying type
[details]
It's ugly, but:
field() = new_value field set new_value field.set(new_value) are all the same |
Unit | MappedField |
| validSelectValues.. |
def validSelectValues
|
Box[List[(KeyType, String)]] | MappedForeignKey |
| validations.. |
def validations
|
List[(FieldType) => List[FieldError]] | MappedField |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |