|
exedio cope | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.exedio.cope.Feature
com.exedio.cope.Field<E>
com.exedio.cope.FunctionField<E>
com.exedio.cope.NumberField<Integer>
com.exedio.cope.IntegerField
public final class IntegerField
Represents a field within a type,
that enables instances of that type to store a integer.
| Constructor Summary | |
|---|---|
IntegerField()
Creates a new mandatory IntegerField. |
|
| Method Summary | |
|---|---|
int |
checkDefaultToNext()
|
IntegerField |
copy()
|
IntegerField |
defaultTo(Integer defaultConstant)
|
IntegerField |
defaultToNext(int start)
|
Condition |
equal(Integer value)
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. |
Integer |
getDefaultNextStart()
|
SequenceInfo |
getDefaultToNextInfo()
|
Set<Class<? extends Throwable>> |
getInitialExceptions()
Returns the exceptions possibly thrown, when setting a value for this settable. |
Class |
getInitialType()
|
int |
getMandatory(Item item)
|
int |
getMaximum()
|
int |
getMinimum()
|
boolean |
isDefaultNext()
|
boolean |
isInitial()
Returns true, if a value for the field should be specified on the creation of an item. |
IntegerField |
max(int maximum)
|
IntegerField |
min(int minimum)
|
IntegerField |
nonUnique()
|
Condition |
notEqual(Integer value)
|
IntegerField |
optional()
Returns a new Field, that differs from this Field by being optional. |
IntegerField |
range(int minimum,
int maximum)
|
void |
set(Item item,
int value)
|
IntegerField |
toFinal()
Returns a new Field, that differs from this Field by being final. |
IntegerField |
unique()
Returns a new FunctionField, that differs from this FunctionField by being unique. |
| Methods inherited from class com.exedio.cope.NumberField |
|---|
bind, divide, multiply, multiply, plus, plus, sum, sum |
| 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, 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 class com.exedio.cope.Feature |
|---|
getAnnotation, getID, getName, getType, toString, toString |
| 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 |
|---|
appendParameter, between, equal, equal, get, getValueClass, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual |
| Methods inherited from interface com.exedio.cope.Selectable |
|---|
append, appendSelect, check, getType, toString |
| Constructor Detail |
|---|
public IntegerField()
| Method Detail |
|---|
public IntegerField copy()
copy in class FunctionField<Integer>public IntegerField toFinal()
Field
toFinal in class Field<Integer>Field.isFinal()public IntegerField optional()
Field
optional in class Field<Integer>Field.isMandatory()public IntegerField unique()
FunctionField
unique in class FunctionField<Integer>FunctionField.getImplicitUniqueConstraint()public IntegerField nonUnique()
nonUnique in class FunctionField<Integer>public IntegerField defaultTo(Integer defaultConstant)
public IntegerField defaultToNext(int start)
public IntegerField range(int minimum,
int maximum)
public IntegerField min(int minimum)
public IntegerField max(int maximum)
public boolean isDefaultNext()
public Integer getDefaultNextStart()
public int getMinimum()
public int getMaximum()
public boolean isInitial()
isFinal() || isMandatory()) && !isDefaultNext().
isInitial in interface Settable<Integer>isInitial in class FunctionField<Integer>public Set<Class<? extends Throwable>> getInitialExceptions()
Settable
getInitialExceptions in interface Settable<Integer>getInitialExceptions in class FunctionField<Integer>public Class getInitialType()
getInitialType in interface Settable<Integer>getInitialType in class FunctionField<Integer>public int getMandatory(Item item)
IllegalArgumentException - if this field is not mandatory.
public void set(Item item,
int value)
throws UniqueViolationException,
FinalViolationException,
IntegerRangeViolationException
UniqueViolationException
FinalViolationException
IntegerRangeViolationExceptionpublic SequenceInfo getDefaultToNextInfo()
public int checkDefaultToNext()
public Condition equal(Integer value)
Function
equal in interface Function<Integer>equal in class FunctionField<Integer>public Condition notEqual(Integer value)
notEqual in interface Function<Integer>notEqual in class FunctionField<Integer>
|
Cope with Object Persistence |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||