Package com.exedio.cope
Class DayField
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Field<E>
-
- com.exedio.cope.FunctionField<Day>
-
- com.exedio.cope.DayField
-
- All Implemented Interfaces:
Copyable
,Function<Day>
,Selectable<Day>
,Settable<Day>
,Serializable
public final class DayField extends FunctionField<Day>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DayField()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DayField
copy()
DayField
copyFrom(ItemField<?> copyFrom)
DayPartView
dayOfMonth()
DayField
defaultTo(Day defaultConstant)
DayField
defaultToNow()
Deprecated.UsedefaultToNow(TimeZone)
instead.DayField
defaultToNow(TimeZone zone)
static Day
getDefaultMaximum()
static Day
getDefaultMinimum()
TimeZone
getDefaultNowZimeZone()
Day
getMaximum()
Day
getMinimum()
com.exedio.cope.SelectType<Day>
getValueType()
boolean
isDefaultNow()
DayPartView
month()
DayField
noCopyFrom()
Returns a new FunctionField that differs from this FunctionField by having nocopyFrom
fields set.DayField
noDefault()
DayField
nonUnique()
DayField
optional()
Returns a new Field, that differs from this Field by being optional.DayField
toFinal()
Returns a new Field, that differs from this Field by being final.void
touch(Item item)
Deprecated.void
touch(Item item, TimeZone zone)
DayField
unique()
Returns a new FunctionField, that differs from this FunctionField by being unique.DayPartView
weekOfYear()
DayPartView
year()
-
Methods inherited from class com.exedio.cope.FunctionField
addCopyFrom, append, appendSelect, check, copy, copyFunctionField, get, get, getDefaultConstant, getImplicitCopyConstraint, getImplicitCopyConstraints, getImplicitUniqueConstraint, getInitialExceptions, 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, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, notEqual
-
Methods inherited from interface com.exedio.cope.Selectable
getType, getValueClass, toString
-
-
-
-
Method Detail
-
getDefaultMinimum
public static Day getDefaultMinimum()
-
getDefaultMaximum
public static Day getDefaultMaximum()
-
copy
public DayField copy()
- Specified by:
copy
in classFunctionField<Day>
-
toFinal
public DayField 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<Day>
- See Also:
Field.isFinal()
-
optional
public DayField 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<Day>
- See Also:
Field.isMandatory()
-
unique
public DayField 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<Day>
- See Also:
FunctionField.getImplicitUniqueConstraint()
-
nonUnique
public DayField nonUnique()
- Specified by:
nonUnique
in classFunctionField<Day>
-
copyFrom
public DayField copyFrom(ItemField<?> copyFrom)
- Specified by:
copyFrom
in classFunctionField<Day>
- See Also:
ItemField.copyTo(FunctionField)
-
noCopyFrom
public DayField 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<Day>
-
noDefault
public DayField noDefault()
- Specified by:
noDefault
in classFunctionField<Day>
-
defaultTo
public DayField defaultTo(Day defaultConstant)
- Specified by:
defaultTo
in classFunctionField<Day>
-
isDefaultNow
public boolean isDefaultNow()
-
getDefaultNowZimeZone
public TimeZone getDefaultNowZimeZone()
-
getMinimum
public Day getMinimum()
-
getMaximum
public Day getMaximum()
-
getValueType
public com.exedio.cope.SelectType<Day> getValueType()
-
touch
public void touch(@Nonnull Item item, @Nonnull TimeZone zone)
- Throws:
FinalViolationException
- if this field isfinal
.
-
year
public DayPartView year()
-
month
public DayPartView month()
-
weekOfYear
public DayPartView weekOfYear()
-
dayOfMonth
public DayPartView dayOfMonth()
-
touch
@Deprecated public void touch(Item item)
Deprecated.
-
defaultToNow
@Deprecated public DayField defaultToNow()
Deprecated.UsedefaultToNow(TimeZone)
instead.
-
-