Package com.exedio.cope
Class ItemField<E extends Item>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Field<E>
com.exedio.cope.FunctionField<E>
com.exedio.cope.ItemField<E>
- All Implemented Interfaces:
Copyable,Function<E>,ItemFunction<E>,Selectable<E>,Settable<E>,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidappendSelect(com.exedio.cope.Statement bf, Join join) Deprecated.For internal use within COPE only.voidappendType(com.exedio.cope.Statement bf, Join join) Deprecated.For internal use within COPE only.cascade()Deprecated.Useas(Class)insteadintDeprecated.longCauses this ItemField to create achoice constraint.copy()copyTo(FunctionField<?> copyTo) create(Class<E> valueClass, ItemField.DeletePolicy policy) create(Class<E> valueClass, TypeFuture<E> valueType, ItemField.DeletePolicy policy) Deprecated.defaults make no sense for ItemFieldDeprecated.UseSchemaInfo.getTypeColumnName(ItemField)insteadReturns the type of items, this field accepts instances of.getValueType(Model model) Returns the same value asgetValueType()for the model this field (and itstype) is part of.booleanReturns a new FunctionField that differs from this FunctionField by having nocopyFromfields set.nullify()Additionally makes the fieldoptional.optional()Returns a new Field, that differs from this Field by being optional.toFinal()Returns a new Field, that differs from this Field by being final.unique()Returns a new FunctionField, that differs from this FunctionField by being unique.Methods inherited from class com.exedio.cope.FunctionField
addCopyFrom, append, check, copy, copyFunctionField, get, get, getDefaultConstant, getImplicitCopyConstraint, getImplicitCopyConstraints, getImplicitUniqueConstraint, getInitialExceptions, 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, equal, equal, equal, get, get, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, notEqualMethods inherited from interface com.exedio.cope.ItemFunction
bind, equalTarget, equalTarget, instanceOf, instanceOf, instanceOf, instanceOf, instanceOf, notInstanceOf, notInstanceOf, notInstanceOf, notInstanceOf, notInstanceOf, typeIn, typeIn, typeIn, typeIn, typeIn, typeNotIn, typeNotIn, typeNotIn, typeNotIn, typeNotInMethods inherited from interface com.exedio.cope.Selectable
append, check, getType, getValueClass, toString
-
Method Details
-
create
-
create
public static <E extends Item> ItemField<E> create(Class<E> valueClass, ItemField.DeletePolicy policy) -
create
public static <E extends Item> ItemField<E> create(Class<E> valueClass, TypeFuture<E> valueType, ItemField.DeletePolicy policy) -
copy
- Specified by:
copyin classFunctionField<E extends Item>
-
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<E extends Item>- 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<E extends Item>- 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<E extends Item>- See Also:
-
nonUnique
- Specified by:
nonUniquein classFunctionField<E extends Item>
-
copyFrom
- Specified by:
copyFromin classFunctionField<E extends Item>- See Also:
-
copyTo
- See Also:
-
noCopyFrom
Description copied from class:FunctionFieldReturns a new FunctionField that differs from this FunctionField by having nocopyFromfields set.- Specified by:
noCopyFromin classFunctionField<E extends Item>
-
choice
Causes this ItemField to create achoice constraint.This ItemField becomes the
targetof the copy constraint. The field pointing back becomes thetemplate, andType.getThis()of the type of this ItemField becomes thecopy.- Parameters:
backPointerName- the name of the field pointing back; atE, this has to be the name of anItemFieldwhere thevalue typeoverlaps with this item field'sFeature.getType()
-
noDefault
- Specified by:
noDefaultin classFunctionField<E extends Item>
-
nullify
Additionally makes the fieldoptional. -
cascade
-
defaultTo
Deprecated.defaults make no sense for ItemField- Specified by:
defaultToin classFunctionField<E extends Item>
-
getChoice
-
as
-
asExtends
- See Also:
-
asSuper
- See Also:
-
getDeletePolicy
-
getValueType
Returns the type of items, this field accepts instances of.- Specified by:
getValueTypein interfaceItemFunction<E extends Item>- Specified by:
getValueTypein interfaceSelectable<E extends Item>
-
getValueType
Returns the same value asgetValueType()for the model this field (and itstype) is part of. For other models it returns the same value asgetValueType()if this field (and itstype) had been added to that model. -
appendSelect
Deprecated.For internal use within COPE only.- Specified by:
appendSelectin interfaceSelectable<E extends Item>- Overrides:
appendSelectin classFunctionField<E extends Item>
-
appendType
Deprecated.For internal use within COPE only.- Specified by:
appendTypein interfaceItemFunction<E extends Item>
-
needsCheckTypeColumn
public boolean needsCheckTypeColumn()- Specified by:
needsCheckTypeColumnin interfaceItemFunction<E extends Item>- See Also:
-
checkTypeColumnL
public long checkTypeColumnL()- Specified by:
checkTypeColumnLin interfaceItemFunction<E extends Item>- See Also:
-
checkTypeColumn
Deprecated.- Specified by:
checkTypeColumnin interfaceItemFunction<E extends Item>
-
cast
Deprecated.Useas(Class)instead -
getTypeColumnName
Deprecated.UseSchemaInfo.getTypeColumnName(ItemField)instead
-