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 enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()static Datestatic DateReturns 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.booleanReturns 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 nocopyFromfields set.optional()Returns a new Field, that differs from this Field by being optional.roundingMode(DateField.RoundingMode roundingMode) voidsetRounded(Item item, Date value) voidsetRounded(Item item, Date value, DateField.RoundingMode roundingMode) toFinal()Returns a new Field, that differs from this Field by being final.voidunique()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, setMethods inherited from class com.exedio.cope.Field
castCollection, check, execute, getColumnName, getInitialType, getPatterns, getValueClass, isFinal, isMandatory, mapNullMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, getType, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.exedio.cope.Function
any, between, bind, equal, equal, equal, greater, greaterOrEqual, in, in, isNotNull, isNull, less, lessOrEqual, max, min, notEqual, notEqualMethods inherited from interface com.exedio.cope.Selectable
getType, getValueClass, toString
-
Constructor Details
-
DateField
public DateField()
-
-
Method Details
-
getDefaultMinimum
-
getDefaultMaximum
-
copy
- Specified by:
copyin classFunctionField<Date>
-
toFinal
Description copied from class:FieldReturns 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:
toFinalin classFunctionField<Date>- See Also:
-
optional
Description copied from class:FieldReturns 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:
optionalin classFunctionField<Date>- See Also:
-
unique
Description copied from class:FunctionFieldReturns 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:
uniquein classFunctionField<Date>- See Also:
-
nonUnique
- Specified by:
nonUniquein classFunctionField<Date>
-
copyFrom
- Specified by:
copyFromin classFunctionField<Date>- See Also:
-
noCopyFrom
Description copied from class:FunctionFieldReturns a new FunctionField that differs from this FunctionField by having nocopyFromfields set.- Specified by:
noCopyFromin classFunctionField<Date>
-
noDefault
- Specified by:
noDefaultin classFunctionField<Date>
-
defaultTo
- Specified by:
defaultToin classFunctionField<Date>
-
defaultToNow
-
isDefaultNow
public boolean isDefaultNow() -
getMinimum
-
getMaximum
-
precisionSecond
-
precisionMinute
-
precisionHour
Returns a new DateField, that differs from this DateField by having aprecisionofhours. 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:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<Date>- Overrides:
getInitialExceptionsin classFunctionField<Date>
-
mapRounded
-
setRounded
-
setRounded
public void setRounded(@Nonnull Item item, Date value, @Nonnull DateField.RoundingMode roundingMode) -
less
Description copied from interface:FunctionReturns 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:FunctionReturns 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:FunctionReturns 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:FunctionReturns 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.
-