Class

net.liftweb.mapper

MappedTime

Related Doc: package mapper

Permalink

abstract class MappedTime[T <: Mapper[T]] extends MappedField[Date, T]

Represents a time with hour, minute and second fields. The underlying type is java.util.Date to keep things simple, but be aware that the date portion of the values will most likely be discarded when this is saved to the database.

See also

MappedDate

MappedDateTime

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MappedTime
  2. MappedField
  3. Equals
  4. PSettableValueHolder
  5. PValueHolder
  6. BaseOwnedMappedField
  7. BaseMappedField
  8. Serializable
  9. Serializable
  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
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MappedTime(fieldOwner: T)

    Permalink

Type Members

  1. type TheOwnerType = T

    Permalink

    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 = Date

    Permalink

    Will be set to the type of the field

    Will be set to the type of the field

    Definition Classes
    MappedFieldPValueHolderValueHolder

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def :=(v: Date): Date

    Permalink
    Definition Classes
    MappedField
  4. def :=[Q](v: Q)(implicit arg0: (Q) ⇒ Date): Date

    Permalink
    Definition Classes
    MappedField
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def _dbColumnNameLC: String

    Permalink

    The forced lower case column names

    The forced lower case column names

    Definition Classes
    BaseMappedField
  7. def _toForm: Box[NodeSeq]

    Permalink

    Create an input field for the item

    Create an input field for the item

    Definition Classes
    MappedTimeMappedFieldBaseMappedField
  8. def actualField(actual: T): MappedField[Date, T]

    Permalink

    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
  9. def allFields: Seq[BaseField]

    Permalink
    Definition Classes
    BaseFieldFieldContainer
  10. def appendFieldId(in: Elem): Elem

    Permalink

    If the field has a defined fieldId, append it

    If the field has a defined fieldId, append it

    Attributes
    protected
    Definition Classes
    MappedField
  11. def apply(v: Date): T

    Permalink
    Definition Classes
    MappedField
  12. def apply[Q](v: Q)(implicit arg0: (Q) ⇒ Date): T

    Permalink
    Definition Classes
    MappedField
  13. def asHtml: Node

    Permalink

    Default read-only rendering of field

    Default read-only rendering of field

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedFieldReadableFieldBindable
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def asJs: List[(String, JsExp)]

    Permalink
    Definition Classes
    BaseMappedField
  16. def asJsExp: JsExp

    Permalink
    Definition Classes
    MappedTimeBaseMappedField
  17. def asJsonField: Box[JField]

    Permalink
    Definition Classes
    BaseMappedField
  18. def asJsonValue: Box[JValue]

    Permalink
    Definition Classes
    MappedTimeBaseMappedField
  19. def asString: String

    Permalink

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

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

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  20. def atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType

    Permalink

    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
  21. def buildSetActualValue(accessor: Method, v: AnyRef, columnName: String): (T, AnyRef) ⇒ Unit

    Permalink
    Definition Classes
    MappedTimeMappedField
  22. def buildSetBooleanValue(accessor: Method, columnName: String): (T, Boolean, Boolean) ⇒ Unit

    Permalink
    Definition Classes
    MappedTimeMappedField
  23. def buildSetDateValue(accessor: Method, columnName: String): (T, Date) ⇒ Unit

    Permalink
    Definition Classes
    MappedTimeMappedField
  24. def buildSetLongValue(accessor: Method, columnName: String): (T, Long, Boolean) ⇒ Unit

    Permalink
    Definition Classes
    MappedTimeMappedField
  25. def buildSetStringValue(accessor: Method, columnName: String): (T, String) ⇒ Unit

    Permalink
    Definition Classes
    MappedTimeMappedField
  26. def calcFieldName: String

    Permalink
    Definition Classes
    MappedField
  27. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    MappedField → Equals
  28. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def convertToJDBCFriendly(value: Date): AnyRef

    Permalink
    Definition Classes
    MappedField
  30. def dbAddedColumn: Box[() ⇒ Unit]

    Permalink

    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
  31. def dbAddedIndex: Box[() ⇒ Unit]

    Permalink

    Called when a column has indexed via Schemifier

    Called when a column has indexed via Schemifier

    Definition Classes
    MappedFieldBaseMappedField
  32. def dbAutogenerated_?: Boolean

    Permalink

    Is the primary key autogenerated

    Is the primary key autogenerated

    Definition Classes
    BaseMappedField
  33. def dbColumnCount: Int

    Permalink

    The number of database columns that this field represents

    The number of database columns that this field represents

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  34. def dbColumnName: String

    Permalink
    Definition Classes
    MappedFieldBaseMappedField
  35. def dbColumnNames(in: String): List[String]

    Permalink
    Definition Classes
    MappedFieldBaseMappedField
  36. def dbDisplay_?: Boolean

    Permalink
    Definition Classes
    BaseMappedField
  37. def dbFieldClass: Class[Date]

    Permalink

    What is the real class that corresponds to FieldType

    What is the real class that corresponds to FieldType

    Definition Classes
    MappedTimeTypedField
  38. def dbForeignKey_?: Boolean

    Permalink

    Is the field a foreign key reference

    Is the field a foreign key reference

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  39. def dbIgnoreSQLType_?: Boolean

    Permalink

    Do we ignore the targetSQLType for setObject

    Do we ignore the targetSQLType for setObject

    Definition Classes
    BaseMappedField
  40. def dbIncludeInForm_?: Boolean

    Permalink
    Definition Classes
    BaseMappedField
  41. def dbIndexFieldIndicatesSaved_?: Boolean

    Permalink

    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
  42. def dbIndexed_?: Boolean

    Permalink

    Should the field be indexed?

    Should the field be indexed?

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  43. def dbNotNull_?: Boolean

    Permalink

    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
  44. def dbPrimaryKey_?: Boolean

    Permalink

    Is the field the table's primary key

    Is the field the table's primary key

    Definition Classes
    MappedFieldBaseMappedFieldMixableMappedField
  45. def dbSelectString: String

    Permalink
    Definition Classes
    MappedFieldSelectableField
  46. def defaultValue: Date

    Permalink

    The default value for the field

    The default value for the field

    Definition Classes
    MappedTimeTypedField
  47. def dirty_?(b: Boolean): Unit

    Permalink

    Make the field dirty

    Make the field dirty

    Attributes
    protected
    Definition Classes
    MappedField
  48. def dirty_?: Boolean

    Permalink

    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
  49. def displayHtml: NodeSeq

    Permalink
    Definition Classes
    ReadableField
  50. def displayName: String

    Permalink

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

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

    Definition Classes
    MappedFieldReadableField
  51. def displayNameHtml: Box[NodeSeq]

    Permalink
    Definition Classes
    ReadableField
  52. def doField(inst: T, meth: Method, func: PartialFunction[MappedField[Date, T], Unit]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    MappedField
  53. def doneWithSave(): Unit

    Permalink

    Called after the field is saved to the database

    Called after the field is saved to the database

    Attributes
    protected[net.liftweb.mapper]
    Definition Classes
    MappedTimeBaseMappedField
  54. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  55. def equals(other: Any): Boolean

    Permalink

    Does the "right thing" comparing mapped fields

    Does the "right thing" comparing mapped fields

    Definition Classes
    MappedField → Equals → AnyRef → Any
  56. def fieldCreatorString(dbType: DriverType, colName: String): String

    Permalink

    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
    MappedTimeMappedFieldBaseMappedField
  57. def fieldCreatorString(dbType: DriverType): List[String]

    Permalink

    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
  58. def fieldId: Option[NodeSeq]

    Permalink

    A unique 'id' for the field for form generation

    A unique 'id' for the field for form generation

    Definition Classes
    SettableField
  59. val fieldOwner: T

    Permalink

    Return the owner of this field

    Return the owner of this field

    Definition Classes
    MappedTimeMappedField
  60. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  61. def formElemAttrs: Seq[http.SHtml.ElemAttr]

    Permalink

    What form elements are we going to add to this field?

    What form elements are we going to add to this field?

    Definition Classes
    BaseMappedField
  62. def formInputType: String

    Permalink

    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
  63. def format(d: Date): String

    Permalink

    This method defines the string parsing semantics of this field.

    This method defines the string parsing semantics of this field. Used in toString, _toForm. By default uses LiftRules.dateTimeConverter's formatTime; override for field-specific behavior

  64. def get: Date

    Permalink

    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

    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
  65. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  66. def getField(inst: T, meth: Method): MappedField[Date, T]

    Permalink
    Attributes
    protected
    Definition Classes
    MappedField
  67. def hashCode(): Int

    Permalink
    Definition Classes
    MappedField → AnyRef → Any
  68. def helpAsHtml: Box[NodeSeq]

    Permalink
    Definition Classes
    SettableField
  69. def i_is_!: Date

    Permalink

    The actual value of the field

    The actual value of the field

    Attributes
    protected
    Definition Classes
    MappedTimeMappedField
  70. def i_obscure_!(in: Date): Date

    Permalink

    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

    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
    MappedTimeMappedField
  71. final def i_set_!(value: Date): Date

    Permalink
    Attributes
    protected
    Definition Classes
    MappedField
  72. def i_was_!: Date

    Permalink

    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
    MappedTimeMappedField
  73. def ignoreField_?: Boolean

    Permalink

    Should the field be ignored by the OR Mapper?

    Should the field be ignored by the OR Mapper?

    Definition Classes
    MappedField
  74. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  75. def jdbcFriendly(field: String): AnyRef

    Permalink

    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
    MappedTimeMappedFieldBaseMappedField
  76. def jdbcFriendly: AnyRef

    Permalink

    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
  77. def manifest: scala.reflect.api.JavaUniverse.TypeTag[Date]

    Permalink
    Definition Classes
    MappedTimeMappedField
  78. final def name: String

    Permalink

    The name of this field

    The name of this field

    Definition Classes
    MappedFieldReadableField
  79. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  80. def notNullAppender(): String

    Permalink
    Definition Classes
    MappedField
  81. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  82. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  83. def parse(s: String): Box[Date]

    Permalink

    This method defines the string parsing semantics of this field.

    This method defines the string parsing semantics of this field. Used in setFromAny. By default uses LiftRules.dateTimeConverter's parseTime; override for field-specific behavior

  84. def performAtomicOperation[T](f: ⇒ T): T

    Permalink

    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

    Permalink

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

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

    Definition Classes
    MappedTimeMappedField
  86. def real_convertToJDBCFriendly(value: Date): AnyRef

    Permalink
    Definition Classes
    MappedTimeMappedField
  87. def real_i_set_!(value: Date): Date

    Permalink

    Must be implemented to store the value of the field

    Must be implemented to store the value of the field

    Attributes
    protected
    Definition Classes
    MappedTimeMappedField
  88. def renderJs_?: Boolean

    Permalink
    Definition Classes
    BaseMappedField
  89. def required_?: Boolean

    Permalink

    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

    Permalink
    Definition Classes
    MappedField
  91. def runFilters(in: Date, filter: List[(Date) ⇒ Date]): Date

    Permalink
    Definition Classes
    MappedField
  92. final def safe_?: Boolean

    Permalink

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

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

    Definition Classes
    MappedField
  93. def set(value: Date): Date

    Permalink

    Set the field to the value

    Set the field to the value

    Definition Classes
    MappedFieldSettable
  94. def setFilter: List[(Date) ⇒ Date]

    Permalink

    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(f: Any): Date

    Permalink

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

    Permalink

    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

    Permalink

    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

    Permalink

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

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

    Definition Classes
    SettableField
  99. def sourceFieldInfo(): SourceFieldInfo { type T = java.util.Date }

    Permalink
    Definition Classes
    MappedField
  100. def sourceInfoMetadata(): SourceFieldMetadata { type ST = java.util.Date }

    Permalink

    Get the source field metadata for the field

    Get the source field metadata for the field

    returns

    the source field metadata for the field

    Definition Classes
    MappedTimeMappedField
  101. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  102. def targetSQLType: Int

    Permalink

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    Definition Classes
    MappedTimeMappedFieldBaseMappedField
  103. def targetSQLType(field: String): Int

    Permalink

    Get the JDBC SQL Type for this field

    Get the JDBC SQL Type for this field

    Definition Classes
    MappedFieldBaseMappedField
  104. def toForm: Box[NodeSeq]

    Permalink

    Create an input field for the item

    Create an input field for the item

    Definition Classes
    MappedFieldSettableField
  105. def toFormAppendedAttributes: MetaData

    Permalink
    Definition Classes
    MappedField
  106. def toLong: Long

    Permalink
  107. def toString(): String

    Permalink
    Definition Classes
    MappedTimeMappedField → AnyRef → Any
  108. def uniqueFieldId: Box[String]

    Permalink

    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
  109. def update[Q](v: Q)(implicit arg0: (Q) ⇒ Date): Unit

    Permalink

    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
  110. def uploadField_?: Boolean

    Permalink

    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
  111. def validate: List[FieldError]

    Permalink

    Validate this field and return a list of Validation Issues

    Validate this field and return a list of Validation Issues

    Definition Classes
    MappedFieldSettableField
  112. def validations: List[(Date) ⇒ List[FieldError]]

    Permalink
    Definition Classes
    MappedFieldSettableField
  113. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  114. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  115. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  116. def was: Date

    Permalink

    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
  117. def writePermission_?: Boolean

    Permalink

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

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

    Definition Classes
    MappedTimeMappedField

Inherited from MappedField[Date, T]

Inherited from Equals

Inherited from PSettableValueHolder[Date]

Inherited from PValueHolder[Date]

Inherited from BaseOwnedMappedField[T]

Inherited from BaseMappedField

Inherited from Serializable

Inherited from Serializable

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

Inherited from AnyRef

Inherited from Any

Ungrouped