net.liftweb.mapper

MappedBoolean

class MappedBoolean [T <: Mapper[T]] extends MappedField[Boolean, T]

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

Instance constructors

  1. new MappedBoolean (fieldOwner: 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 = Boolean

    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: Boolean) : Boolean

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

    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: MappedBooleanMappedFieldBaseMappedField
  12. def actualField (actual: T) : MappedField[Boolean, 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: Boolean) : T

    definition classes: MappedField
  16. def apply [Q] (v: Q)(implicit arg0: (Q) ⇒ Boolean) : 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: MappedBooleanBaseMappedField
  21. def asJsonField : Box[JField]

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

    definition classes: MappedBooleanBaseMappedField
  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, inst: AnyRef, columnName: String) : (T, AnyRef) ⇒ Unit

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

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

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

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

    definition classes: MappedBooleanMappedField
  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 convertToJDBCFriendly (value: Boolean) : AnyRef

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

    Called when a column has indexed via Schemifier

    Called when a column has indexed via Schemifier

    definition classes: MappedFieldBaseMappedField
  35. def dbAutogenerated_? : Boolean

    Is the primary key autogenerated

    Is the primary key autogenerated

    definition classes: BaseMappedField
  36. def dbColumnCount : Int

    The number of database columns that this field represents

    The number of database columns that this field represents

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  37. def dbColumnName : String

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

    definition classes: MappedFieldBaseMappedField
  39. def dbDisplay_? : Boolean

    definition classes: BaseMappedField
  40. def dbFieldClass : Class[Boolean]

    What is the real class that corresponds to FieldType

    What is the real class that corresponds to FieldType

    definition classes: MappedBooleanTypedField
  41. def dbForeignKey_? : Boolean

    Is the field a foreign key reference

    Is the field a foreign key reference

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  42. def dbIgnoreSQLType_? : Boolean

    Do we ignore the targetSQLType for setObject

    Do we ignore the targetSQLType for setObject

    definition classes: BaseMappedField
  43. def dbIncludeInForm_? : Boolean

    definition classes: BaseMappedField
  44. 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: MappedField
  45. def dbIndexed_? : Boolean

    Should the field be indexed?

    Should the field be indexed?

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  46. 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
  47. def dbPrimaryKey_? : Boolean

    Is the field the table's primary key

    Is the field the table's primary key

    definition classes: MappedFieldBaseMappedFieldMixableMappedField
  48. def dbSelectString : String

    definition classes: MappedFieldSelectableField
  49. def defaultValue : Boolean

    The default value for the field

    The default value for the field

    definition classes: MappedBooleanTypedField
  50. def dirty_? (b: Boolean) : Unit

    Make the field dirty

    Make the field dirty

    attributes: protected
    definition classes: MappedField
  51. 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
  52. def displayHtml : NodeSeq

    definition classes: ReadableField
  53. def displayName : String

    The display name of this field (e.

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

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

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

    attributes: protected
    definition classes: MappedField
  56. 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: MappedBooleanBaseMappedField
  57. 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
  58. 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
  59. 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: MappedBooleanMappedFieldBaseMappedField
  60. 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
  61. 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
  62. val fieldOwner : T

    Return the owner of this field

    Return the owner of this field

    definition classes: MappedBooleanMappedField
  63. 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
  64. 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
  65. def get : Boolean

    An alternative getter

    An alternative getter

    definition classes: MappedFieldValueHolder
  66. 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
  67. def getField (inst: T, meth: Method) : MappedField[Boolean, T]

    attributes: protected
    definition classes: MappedField
  68. 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
  69. def helpAsHtml : Box[NodeSeq]

    definition classes: SettableField
  70. def i_is_! : Boolean

    The actual value of the field

    The actual value of the field

    attributes: protected
    definition classes: MappedBooleanMappedField
  71. def i_obscure_! (in: Boolean) : Boolean

    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: MappedBooleanMappedField
  72. def i_set_! (value: Boolean) : Boolean

    attributes: protected final
    definition classes: MappedField
  73. def i_was_! : Boolean

    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: MappedBooleanMappedField
  74. def ignoreField_? : Boolean

    Should the field be ignored by the OR Mapper?

    Should the field be ignored by the OR Mapper?

    definition classes: MappedField
  75. def is : Boolean

    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
  76. 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
  77. def jdbcFriendly (field: String) : Integer

    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: MappedBooleanMappedFieldBaseMappedField
  78. def jdbcFriendly : AnyRef

    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: MappedFieldBaseMappedField
  79. def name : String

    The name of this field

    The name of this field

    attributes: final
    definition classes: MappedFieldReadableField
  80. 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
  81. def notNullAppender () : String

    definition classes: MappedField
  82. 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
  83. 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
  84. 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
  85. 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: MappedBooleanMappedField
  86. def real_convertToJDBCFriendly (value: Boolean) : AnyRef

    definition classes: MappedBooleanMappedField
  87. def real_i_set_! (value: Boolean) : Boolean

    Must be implemented to store the value of the field

    Must be implemented to store the value of the field

    attributes: protected
    definition classes: MappedBooleanMappedField
  88. def renderJs_? : Boolean

    definition classes: BaseMappedField
  89. 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
  90. def resetDirty : Unit

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

    definition classes: MappedField
  92. 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
  93. def set (value: Boolean) : Boolean

    Set the field to the value

    Set the field to the value

    definition classes: MappedFieldSettable
  94. def setFilter : List[(Boolean) ⇒ Boolean]

    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
  95. def setFromAny (in: Any) : Boolean

    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: MappedBooleanMappedField
  96. def set_? (value: Box[Boolean]) : Box[Boolean]

    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
  97. def shouldDisplay_? : Boolean

    Given the current context, should this field be displayed

    Given the current context, should this field be displayed

    definition classes: ReadableField
  98. 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
  99. def synchronized [T0] (arg0: T0) : T0

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

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    definition classes: MappedBooleanMappedFieldBaseMappedField
  101. def targetSQLType (field: String) : Int

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

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

    Create an input field for the item

    Create an input field for the item

    definition classes: MappedFieldSettableField
  103. def toFormAppendedAttributes : MetaData

    definition classes: MappedField
  104. 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
  105. 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
  106. def update [Q] (v: Q)(implicit arg0: (Q) ⇒ Boolean) : 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
  107. 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
  108. 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
  109. def validations : List[(Boolean) ⇒ List[FieldError]]

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

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

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

    attributes: final
    definition classes: AnyRef
  113. def was : Boolean

    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
  114. 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: MappedBooleanMappedField

Inherited from MappedField[Boolean, T]

Inherited from PSettableValueHolder[Boolean]

Inherited from PValueHolder[Boolean]

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[Boolean]

Inherited from AnyRef

Inherited from Any