Package com.exedio.cope.pattern
Class PriceField
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.PriceField
-
- All Implemented Interfaces:
Copyable
,PriceFunction
,Settable<Price>
,Serializable
public final class PriceField extends Pattern implements Settable<Price>, Copyable, PriceFunction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PriceField()
-
Method Summary
-
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSource
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
-
-
-
Method Detail
-
copy
public PriceField copy(CopyMapper mapper)
-
toFinal
public PriceField toFinal()
-
optional
public PriceField optional()
-
defaultTo
public PriceField defaultTo(Price defaultConstant)
-
range
public PriceField range(Price minimum, Price maximum)
-
min
public PriceField min(Price minimum)
-
minZero
public PriceField minZero()
-
max
public PriceField max(Price maximum)
-
getInt
public LongField getInt()
-
isInitial
public boolean isInitial()
Description copied from interface:Settable
Returns true, if a value for the settable should be specified on the creation of an item.
-
isFinal
public boolean isFinal()
Description copied from interface:Settable
Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory
in interfaceSettable<Price>
-
getInitialType
public Class<?> getInitialType()
- Specified by:
getInitialType
in interfaceSettable<Price>
-
getDefaultConstant
public Price getDefaultConstant()
-
getMinimum
public Price getMinimum()
-
getMaximum
public Price 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 interfaceSettable<Price>
-
bind
public PriceFunction bind(Join join)
-
isNull
public IsNullCondition<?> isNull()
- Specified by:
isNull
in interfacePriceFunction
-
isNotNull
public IsNullCondition<?> isNotNull()
- Specified by:
isNotNull
in interfacePriceFunction
-
equal
public Condition equal(Price value)
- Specified by:
equal
in interfacePriceFunction
-
notEqual
public Condition notEqual(Price value)
- Specified by:
notEqual
in interfacePriceFunction
-
less
public CompareCondition<?> less(Price value)
- Specified by:
less
in interfacePriceFunction
-
lessOrEqual
public CompareCondition<?> lessOrEqual(Price value)
- Specified by:
lessOrEqual
in interfacePriceFunction
-
greater
public CompareCondition<?> greater(Price value)
- Specified by:
greater
in interfacePriceFunction
-
greaterOrEqual
public CompareCondition<?> greaterOrEqual(Price value)
- Specified by:
greaterOrEqual
in interfacePriceFunction
-
between
public Condition between(Price lowerBound, Price upperBound)
- Specified by:
between
in interfacePriceFunction
-
equal
public CompareFunctionCondition<?> equal(PriceField right)
-
notEqual
public CompareFunctionCondition<?> notEqual(PriceField right)
-
less
public CompareFunctionCondition<?> less(PriceField right)
-
lessOrEqual
public CompareFunctionCondition<?> lessOrEqual(PriceField right)
-
greater
public CompareFunctionCondition<?> greater(PriceField right)
-
greaterOrEqual
public CompareFunctionCondition<?> greaterOrEqual(PriceField right)
-
min
@Deprecated public PriceField min(int minimum)
Deprecated.Usemin(Price)
instead.
-
-