com.exedio.cope
Class DoubleField
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Field<E>
com.exedio.cope.FunctionField<E>
com.exedio.cope.NumberField<Double>
com.exedio.cope.DoubleField
- All Implemented Interfaces:
- Function<Double>, NumberFunction<Double>, Selectable<Double>, Settable<Double>
public final class DoubleField
- extends NumberField<Double>
| Methods inherited from class com.exedio.cope.FunctionField |
append, appendParameter, appendSelect, between, check, copyFunctionField, equal, equal, get, getDefaultConstant, getImplicitUniqueConstraint, getUniqueConstraints, getWrappers, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isInitial, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, searchUnique, searchUnique, set |
| Methods inherited from class com.exedio.cope.Field |
castCollection, check, execute, getColumnName, getPattern, getPatterns, getValueClass, isFinal, isMandatory, map, mapNull |
| Methods inherited from interface com.exedio.cope.Function |
appendParameter, between, equal, equal, get, getValueClass, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual |
DoubleField
public DoubleField()
copy
public DoubleField copy()
- Specified by:
copy in class FunctionField<Double>
toFinal
public DoubleField 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 Field<Double>
- See Also:
Field.isFinal()
optional
public DoubleField 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 Field<Double>
- See Also:
Field.isMandatory()
unique
public DoubleField 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 class FunctionField<Double>
- See Also:
FunctionField.getImplicitUniqueConstraint()
nonUnique
public DoubleField nonUnique()
- Specified by:
nonUnique in class FunctionField<Double>
defaultTo
public DoubleField defaultTo(Double defaultConstant)
range
public DoubleField range(double minimum,
double maximum)
min
public DoubleField min(double minimum)
max
public DoubleField max(double maximum)
getMinimum
public double getMinimum()
getMaximum
public double getMaximum()
getInitialExceptions
public Set<Class<? extends Throwable>> getInitialExceptions()
- Description copied from interface:
Settable
- Returns the exceptions possibly thrown,
when setting a value for this settable.
- Specified by:
getInitialExceptions in interface Settable<Double>- Overrides:
getInitialExceptions in class FunctionField<Double>
getInitialType
public Class getInitialType()
- Specified by:
getInitialType in interface Settable<Double>- Overrides:
getInitialType in class FunctionField<Double>
getMandatory
public final double getMandatory(Item item)
- Throws:
IllegalArgumentException - if this field is not mandatory.
set
public final void set(Item item,
double value)
throws UniqueViolationException,
FinalViolationException
- Throws:
UniqueViolationException
FinalViolationException
equal
public Condition equal(Double 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 equal to the given parameter.
- Specified by:
equal in interface Function<Double>- Overrides:
equal in class FunctionField<Double>
notEqual
public Condition notEqual(Double value)
- Specified by:
notEqual in interface Function<Double>- Overrides:
notEqual in class FunctionField<Double>
Copyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114