net.liftweb.mapper

MappedLongIndex

class MappedLongIndex [T <: Mapper[T]] extends MappedLong[T] with IndexedField[Long]

attributes: abstract
linear super types: IndexedField[Long], BaseIndexedField, MappedLong[T], MappedField[Long, T], PSettableValueHolder[Long], PValueHolder[Long], BaseOwnedMappedField[T], BaseMappedField, MixableMappedField, BaseField, FieldContainer, SettableField, SettableValueHolder, Settable, ReadableField, ValueHolder, FieldIdentifier, Bindable, SelectableField, TypedField[Long], AnyRef, Any
known subclasses: MyMappedLongClass, id, id, id
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MappedLongIndex
  2. IndexedField
  3. BaseIndexedField
  4. MappedLong
  5. MappedField
  6. PSettableValueHolder
  7. PValueHolder
  8. BaseOwnedMappedField
  9. BaseMappedField
  10. MixableMappedField
  11. BaseField
  12. FieldContainer
  13. SettableField
  14. SettableValueHolder
  15. Settable
  16. ReadableField
  17. ValueHolder
  18. FieldIdentifier
  19. Bindable
  20. SelectableField
  21. TypedField
  22. AnyRef
  23. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Instance constructors

  1. new MappedLongIndex (theOwner: T)

Type Members

  1. type TheOwnerType = T

    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: MappedFieldMixableMappedField
  2. type ValueType = Long

    Will be set to the type of the field

    Will be set to the type of the field

    definition classes: MappedFieldPValueHolderValueHolder

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def := (v: Long) : Long

    definition classes: MappedField
  7. def := [Q] (v: Q)(implicit arg0: (Q) ⇒ Long) : Long

    definition classes: MappedField
  8. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  9. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  10. def _dbColumnNameLC : String

    The forced lower case column names

    The forced lower case column names

    attributes: final
    definition classes: BaseMappedField
  11. def _toForm : Box[NodeSeq]

    Create an input field for the item

    Create an input field for the item

    definition classes: MappedFieldBaseMappedField
  12. def actualField (actual: T) : MappedField[Long, T]

    Get the field that this prototypical field represents

    Get the field that this prototypical field represents

    actual

    the object to find the field on

    definition classes: MappedField
  13. def allFields : Seq[BaseField]

    definition classes: BaseFieldFieldContainer
  14. def appendFieldId (in: Elem) : Elem

    If the field has a defined fieldId, append it

    If the field has a defined fieldId, append it

    attributes: protected
    definition classes: MappedField
  15. def apply (v: Long) : T

    definition classes: MappedField
  16. def apply [Q] (v: Q)(implicit arg0: (Q) ⇒ Long) : T

    definition classes: MappedField
  17. def asHtml : Node

    Default read-only rendering of field

    Default read-only rendering of field

  18. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  19. def asJs : List[(String, JsExp)]

    definition classes: BaseMappedField
  20. def asJsExp : JsExp

    definition classes: MappedLongBaseMappedField
  21. def asJsonField : Box[JField]

    definition classes: BaseMappedField
  22. def asJsonValue : Box[JValue]

    definition classes: MappedLongBaseMappedField
  23. def asString : String

    Return the field name and field value, delimited by an '='

    Return the field name and field value, delimited by an '='

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  24. def atomicUpdate (f: (ValueType) ⇒ ValueType) : ValueType

    Perform an atomic update of this Settable.

    Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

    definition classes: Settable
  25. def buildSetActualValue (accessor: Method, data: AnyRef, columnName: String) : (T, AnyRef) ⇒ Unit

    definition classes: MappedLongMappedField
  26. def buildSetBooleanValue (accessor: Method, columnName: String) : (T, Boolean, Boolean) ⇒ Unit

    definition classes: MappedLongMappedField
  27. def buildSetDateValue (accessor: Method, columnName: String) : (T, Date) ⇒ Unit

    definition classes: MappedLongMappedField
  28. def buildSetLongValue (accessor: Method, columnName: String) : (T, Long, Boolean) ⇒ Unit

    definition classes: MappedLongMappedField
  29. def buildSetStringValue (accessor: Method, columnName: String) : (T, String) ⇒ Unit

    definition classes: MappedLongMappedField
  30. def calcFieldName : String

    definition classes: MappedField
  31. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  32. def convertKey (in: AnyRef) : Box[Long]

    definition classes: MappedLongIndexIndexedField
  33. def convertKey (in: Int) : Box[Long]

    definition classes: MappedLongIndexIndexedField
  34. def convertKey (in: Long) : Box[Long]

    definition classes: MappedLongIndexIndexedField
  35. def convertKey (in: String) : Box[Long]

    definition classes: MappedLongIndexIndexedField
  36. def convertToJDBCFriendly (value: Long) : AnyRef

    attributes: final
    definition classes: MappedField
  37. 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: MappedFieldBaseMappedField
  38. def dbAddedIndex : Box[() ⇒ Unit]

    Called when a column has indexed via Schemifier

    Called when a column has indexed via Schemifier

    definition classes: MappedFieldBaseMappedField
  39. def dbAutogenerated_? : Boolean

    Is the primary key autogenerated

    Is the primary key autogenerated

    definition classes: BaseMappedField
  40. def dbColumnCount : Int

    The number of database columns that this field represents

    The number of database columns that this field represents

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  41. def dbColumnName : String

    definition classes: MappedFieldBaseMappedField
  42. def dbColumnNames (in: String) : List[String]

    definition classes: MappedFieldBaseMappedField
  43. def dbDisplay_? : Boolean

    definition classes: MappedLongIndexIndexedFieldBaseMappedField
  44. def dbFieldClass : Class[Long]

    What is the real class that corresponds to FieldType

    What is the real class that corresponds to FieldType

    definition classes: MappedLongTypedField
  45. def dbForeignKey_? : Boolean

    Is the field a foreign key reference

    Is the field a foreign key reference

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  46. def dbIgnoreSQLType_? : Boolean

    Do we ignore the targetSQLType for setObject

    Do we ignore the targetSQLType for setObject

    definition classes: BaseMappedField
  47. def dbIncludeInForm_? : Boolean

    definition classes: BaseMappedField
  48. def dbIndexFieldIndicatesSaved_? : Boolean

    override this method in indexed fields to indicate that the field has been saved

    override this method in indexed fields to indicate that the field has been saved

    definition classes: MappedLongIndexMappedField
  49. def dbIndexed_? : Boolean

    Should the field be indexed?

    Should the field be indexed?

  50. 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: MappedFieldBaseMappedFieldMixableMappedField
  51. def dbPrimaryKey_? : Boolean

    Is the field the table's primary key

    Is the field the table's primary key

  52. def dbSelectString : String

    definition classes: MappedFieldSelectableField
  53. def defaultValue : Long

    The default value for the field

    The default value for the field

    definition classes: MappedLongIndexMappedLongTypedField
  54. def defined_? : Boolean

  55. def dirty_? (b: Boolean) : Unit

    Make the field dirty

    Make the field dirty

    attributes: protected
    definition classes: MappedField
  56. def dirty_? : Boolean

    Is the field dirty (has it been changed since the record was loaded from the database

    Is the field dirty (has it been changed since the record was loaded from the database

    definition classes: MappedField
  57. def displayHtml : NodeSeq

    definition classes: ReadableField
  58. def displayName : String

    The display name of this field (e.

    The display name of this field (e.g., "First Name")

    definition classes: MappedFieldReadableField
  59. def displayNameHtml : Box[NodeSeq]

    definition classes: ReadableField
  60. def doField (inst: T, meth: Method, func: PartialFunction[MappedField[Long, T], Unit]) : Unit

    attributes: protected
    definition classes: MappedField
  61. def doneWithSave () : Unit

    Called after the field is saved to the database

    Called after the field is saved to the database

    attributes: protected[mapper]
    definition classes: MappedLongBaseMappedField
  62. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  63. def equals (other: Any) : Boolean

    Does the "right thing" comparing mapped fields@return true if the receiver object is equivalent to the argument; false otherwise.

    Does the "right thing" comparing mapped fields@return true if the receiver object is equivalent to the argument; false otherwise. */

    definition classes: MappedField → AnyRef → Any
  64. 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: MappedLongIndexMappedLongMappedFieldBaseMappedField
  65. def fieldCreatorString (dbType: DriverType) : List[String]

    Given the driver type, return a list of SQL creation strings for the columns represented by this field

    Given the driver type, return a list of SQL creation strings for the columns represented by this field

    definition classes: MappedFieldBaseMappedField
  66. def fieldId : Option[NodeSeq]

    A unique 'id' for the field for form generation

    A unique 'id' for the field for form generation

    definition classes: SettableField
  67. val fieldOwner : T

    Return the owner of this field

    Return the owner of this field

    definition classes: MappedLongMappedField
  68. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  69. def formInputType : String

    When building the form field, what's the input element's type attribute.

    When building the form field, what's the input element's type attribute. Defaults to 'text', but change to 'email' or other HTML5 values.

    attributes: protected
    definition classes: MappedField
  70. def get : Long

    An alternative getter

    An alternative getter

    definition classes: MappedFieldValueHolder
  71. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  72. def getField (inst: T, meth: Method) : MappedField[Long, T]

    attributes: protected
    definition classes: MappedField
  73. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: MappedField → AnyRef → Any
  74. def helpAsHtml : Box[NodeSeq]

    definition classes: SettableField
  75. def i_is_! : Long

    The actual value of the field

    The actual value of the field

    attributes: protected
    definition classes: MappedLongMappedField
  76. def i_obscure_! (in: Long) : Long

    Obscure the incoming value to a "safe" value (e.

    Obscure the incoming value to a "safe" value (e.g., if there are not enough rights to view the entire social security number 123-45-5678, this method might return ***-**-*678

    attributes: protected
    definition classes: MappedLongMappedField
  77. def i_set_! (value: Long) : Long

    attributes: protected final
    definition classes: MappedField
  78. def i_was_! : Long

    The value of the field when it was pulled from the DB

    The value of the field when it was pulled from the DB

    attributes: protected
    definition classes: MappedLongMappedField
  79. def ignoreField_? : Boolean

    Should the field be ignored by the OR Mapper?

    Should the field be ignored by the OR Mapper?

    definition classes: MappedField
  80. def is : Long

    Convert the field to its "context free" type (e.

    Convert the field to its "context free" type (e.g., String, Int, Long, etc.) If there are no read permissions, the value will be obscured

    definition classes: MappedFieldValueHolder
  81. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  82. def jdbcFriendly : Long

    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: MappedLongMappedFieldBaseMappedField
  83. def jdbcFriendly (field: String) : Long

    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: MappedLongMappedFieldBaseMappedField
  84. def makeKeyJDBCFriendly (in: Long) : Long

    definition classes: MappedLongIndexIndexedField
  85. def name : String

    The name of this field

    The name of this field

    attributes: final
    definition classes: MappedFieldReadableField
  86. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  87. def notNullAppender () : String

    definition classes: MappedField
  88. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  89. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  90. def performAtomicOperation [T] (f: ⇒ T) : T

    Perform an atomic operation on the Settable.

    Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

    definition classes: Settable
  91. def readPermission_? : Boolean

    Given the current execution state, can the field be read?

    Given the current execution state, can the field be read?

    definition classes: MappedLongMappedField
  92. def real_convertToJDBCFriendly (value: Long) : AnyRef

    definition classes: MappedLongMappedField
  93. def real_i_set_! (value: Long) : Long

    Must be implemented to store the value of the field

    Must be implemented to store the value of the field

    attributes: protected
    definition classes: MappedLongMappedField
  94. def renderJs_? : Boolean

    definition classes: BaseMappedField
  95. def required_? : Boolean

    Is the Field required (and will have a style designating it as such)

    Is the Field required (and will have a style designating it as such)

    definition classes: SettableField
  96. def resetDirty : Unit

    definition classes: MappedField
  97. def runFilters (in: Long, filter: List[(Long) ⇒ Long]) : Long

    definition classes: MappedField
  98. def safe_? : Boolean

    Are we in "safe" mode (i.

    Are we in "safe" mode (i.e., the value of the field can be read or written without any security checks.)

    attributes: final
    definition classes: MappedField
  99. def set (value: Long) : Long

    Set the field to the value

    Set the field to the value

    definition classes: MappedFieldSettable
  100. def setFilter : List[(Long) ⇒ Long]

    A list of functions that transform the value before it is set.

    A list of functions that transform the value before it is set. The transformations are also applied before the value is used in a query. Typical applications of this are trimming and/or toLowerCase-ing strings

    definition classes: MappedFieldSettableField
  101. def setFromAny (in: Any) : Long

    Attempt to figure out what the incoming value is and set the field to that value.

    Attempt to figure out what the incoming value is and set the field to that value. Return true if the value could be assigned

    definition classes: MappedLongMappedField
  102. def set_? (value: Box[Long]) : Box[Long]

    Set the field to the Box value if the Box is Full

    Set the field to the Box value if the Box is Full

    definition classes: MappedField
  103. def shouldDisplay_? : Boolean

    Given the current context, should this field be displayed

    Given the current context, should this field be displayed

    definition classes: ReadableField
  104. def show_? : Boolean

    Give the current state of things, should the this field be shown

    Give the current state of things, should the this field be shown

    definition classes: SettableField
  105. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  106. def targetSQLType : Int

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    definition classes: MappedLongMappedFieldBaseMappedField
  107. def targetSQLType (field: String) : Int

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    definition classes: MappedFieldBaseMappedField
  108. def toForm : Box[NodeSeq]

    Create an input field for the item

    Create an input field for the item

    definition classes: MappedFieldSettableField
  109. def toFormAppendedAttributes : MetaData

    definition classes: MappedField
  110. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: MappedField → AnyRef → Any
  111. def uniqueFieldId : Box[String]

    The unique field id is the field name and the mapper name

    The unique field id is the field name and the mapper name

    definition classes: MappedFieldFieldIdentifier
  112. def update [Q] (v: Q)(implicit arg0: (Q) ⇒ Long) : Unit

    Assignment from the underlying type.

    Assignment from the underlying type. It's ugly, but:
    field() = new_value
    field set new_value
    field.set(new_value)
    are all the same

    definition classes: MappedField
  113. def uploadField_? : Boolean

    Is this an upload field so that a form that includes this field must be multi-part mime

    Is this an upload field so that a form that includes this field must be multi-part mime

    definition classes: SettableField
  114. def validate : List[FieldError]

    Validate this field and return a list of Validation Issues

    Validate this field and return a list of Validation Issues

    definition classes: MappedFieldSettableField
  115. def validations : List[(Long) ⇒ List[FieldError]]

    definition classes: MappedFieldSettableField
  116. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  117. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  118. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  119. def was : Long

    What value was the field's value when it was pulled from the DB?

    What value was the field's value when it was pulled from the DB?

    definition classes: MappedField
  120. def writePermission_? : Boolean

    Given the current execution state, can the field be written?

    Given the current execution state, can the field be written?

    definition classes: MappedLongIndexMappedLongMappedField

Inherited from IndexedField[Long]

Inherited from BaseIndexedField

Inherited from MappedLong[T]

Inherited from MappedField[Long, T]

Inherited from PSettableValueHolder[Long]

Inherited from PValueHolder[Long]

Inherited from BaseOwnedMappedField[T]

Inherited from BaseMappedField

Inherited from MixableMappedField

Inherited from BaseField

Inherited from FieldContainer

Inherited from SettableField

Inherited from SettableValueHolder

Inherited from Settable

Inherited from ReadableField

Inherited from ValueHolder

Inherited from FieldIdentifier

Inherited from Bindable

Inherited from SelectableField

Inherited from TypedField[Long]

Inherited from AnyRef

Inherited from Any