Package com.exedio.cope
Class DateField
- All Implemented Interfaces:
Copyable
,Function<Date>
,Selectable<Date>
,Settable<Date>
,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
static Date
static Date
Returns the exceptions possibly thrown, when setting a value for this settable.com.exedio.cope.SelectType<Date>
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
(Date value) 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.boolean
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
(Date value) 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.mapRounded
(Date value, DateField.RoundingMode roundingMode) Returns a new FunctionField that differs from this FunctionField by having nocopyFrom
fields set.optional()
Returns a new Field, that differs from this Field by being optional.roundingMode
(DateField.RoundingMode roundingMode) void
setRounded
(Item item, Date value) void
setRounded
(Item item, Date value, DateField.RoundingMode roundingMode) toFinal()
Returns a new Field, that differs from this Field by being final.void
unique()
Returns a new FunctionField, that differs from this FunctionField by being unique.Methods inherited from class com.exedio.cope.FunctionField
addCopyFrom, append, appendSelect, check, copy, copyFunctionField, get, get, getDefaultConstant, getImplicitCopyConstraint, getImplicitCopyConstraints, getImplicitUniqueConstraint, getUniqueConstraints, hasDefault, isInitial, isRedundantByCopyConstraint, searchUnique, searchUnique, searchUniqueStrict, set
Methods inherited from class com.exedio.cope.Field
castCollection, check, execute, getColumnName, getInitialType, getPatterns, getValueClass, isFinal, isMandatory, mapNull
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, getType, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.exedio.cope.Function
any, between, bind, equal, equal, equal, greater, greaterOrEqual, in, in, isNotNull, isNull, less, lessOrEqual, max, min, notEqual, notEqual
Methods inherited from interface com.exedio.cope.Selectable
getType, getValueClass, toString
-
Constructor Details
-
DateField
public DateField()
-
-
Method Details
-
getDefaultMinimum
-
getDefaultMaximum
-
copy
- Specified by:
copy
in classFunctionField<Date>
-
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 classFunctionField<Date>
- See Also:
-
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 classFunctionField<Date>
- See Also:
-
unique
Description copied from class:FunctionField
Returns a new FunctionField, that differs from this FunctionField by being unique. If this FunctionField is already unique, the the result is equal to this FunctionField.- Specified by:
unique
in classFunctionField<Date>
- See Also:
-
nonUnique
- Specified by:
nonUnique
in classFunctionField<Date>
-
copyFrom
- Specified by:
copyFrom
in classFunctionField<Date>
- See Also:
-
noCopyFrom
Description copied from class:FunctionField
Returns a new FunctionField that differs from this FunctionField by having nocopyFrom
fields set.- Specified by:
noCopyFrom
in classFunctionField<Date>
-
noDefault
- Specified by:
noDefault
in classFunctionField<Date>
-
defaultTo
- Specified by:
defaultTo
in classFunctionField<Date>
-
defaultToNow
-
isDefaultNow
public boolean isDefaultNow() -
getMinimum
-
getMaximum
-
precisionSecond
-
precisionMinute
-
precisionHour
Returns a new DateField, that differs from this DateField by having aprecision
ofhours
. 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.
-
getPrecision
-
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.
-
getRoundingMode
-
getValueType
-
getInitialExceptions
Description copied from interface:Settable
Returns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptions
in interfaceSettable<Date>
- Overrides:
getInitialExceptions
in classFunctionField<Date>
-
mapRounded
-
setRounded
-
setRounded
public void setRounded(@Nonnull Item item, Date value, @Nonnull DateField.RoundingMode roundingMode) -
less
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
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
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
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. -
touch
- Throws:
FinalViolationException
- if this field isfinal
.
-