Class DateField

    • Constructor Detail

      • DateField

        public DateField()
    • Method Detail

      • getDefaultMinimum

        public static Date getDefaultMinimum()
      • getDefaultMaximum

        public static Date getDefaultMaximum()
      • toFinal

        public DateField toFinal()
        Description copied from class: Field
        Returns a new Field, that differs from this Field by being final. If this Field is already final, the the result is equal to this Field.
        Specified by:
        toFinal in class FunctionField<Date>
        See Also:
        Field.isFinal()
      • optional

        public DateField optional()
        Description copied from class: Field
        Returns a new Field, that differs from this Field by being optional. If this Field is already optional, the the result is equal to this Field.
        Specified by:
        optional in class FunctionField<Date>
        See Also:
        Field.isMandatory()
      • defaultToNow

        public DateField defaultToNow()
      • isDefaultNow

        public boolean isDefaultNow()
      • getMinimum

        public Date getMinimum()
      • getMaximum

        public Date getMaximum()
      • precisionSecond

        public DateField precisionSecond()
        Returns a new DateField, that differs from this DateField by having a precision of seconds. This means, dates stored into the field are constrained to whole seconds.
      • precisionMinute

        public DateField precisionMinute()
        Returns a new DateField, that differs from this DateField by having a precision of minutes. This means, dates stored into the field are constrained to whole minutes.
      • precisionHour

        public DateField precisionHour()
        Returns a new DateField, that differs from this DateField by having a precision of hours. This means, dates stored into the field are constrained to whole hours as represented in GMT (Greenwich Mean Time).

        NOTE: Some time zones do have an offset to GMT, that is not a whole hour - for instance Indian Standard Time with an offset of 5 hours and 30 minutes. All dates allowed for the field will have a minute part of 30 when being represented in Indian Standard Time.

      • roundingMode

        public DateField roundingMode​(DateField.RoundingMode roundingMode)
        Parameters:
        roundingMode - specifies the rounding mode of the current date if there is a precision constraint on this field. Does not make any difference, if there is no precision constraint.
      • getValueType

        public com.exedio.cope.SelectType<Date> getValueType()
      • less

        public CompareCondition<Date> less​(Date value)
        Description copied from interface: Function
        Returns a condition, that is true for all items, if and only if the value of this function for that item is less than the given parameter.
      • lessOrEqual

        public CompareCondition<Date> lessOrEqual​(Date value)
        Description copied from interface: Function
        Returns a condition, that is true for all items, if and only if the value of this function for that item is not greater than the given parameter.
      • greater

        public CompareCondition<Date> greater​(Date value)
        Description copied from interface: Function
        Returns a condition, that is true for all items, if and only if the value of this function for that item is greater than the given parameter.
      • greaterOrEqual

        public CompareCondition<Date> greaterOrEqual​(Date value)
        Description copied from interface: Function
        Returns a condition, that is true for all items, if and only if the value of this function for that item is not less than the given parameter.