Package com.exedio.cope
Class EnumField<E extends Enum<E>>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Field<E>
com.exedio.cope.FunctionField<E>
com.exedio.cope.EnumField<E>
- All Implemented Interfaces:
Copyable,Function<E>,Selectable<E>,Settable<E>,Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.copy()intgetColumnValue(E value) Deprecated.UseSchemaInfo.getColumnValue(EnumField,Enum)insteadcom.exedio.cope.SelectType<E>Returns a new FunctionField that differs from this FunctionField by having nocopyFromfields set.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, appendSelect, 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, bind, equal, equal, equal, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, notEqualMethods inherited from interface com.exedio.cope.Selectable
getType, getValueClass, toString
-
Method Details
-
create
-
copy
- Specified by:
copyin classFunctionField<E extends Enum<E>>
-
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 Enum<E>>- 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 Enum<E>>- 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 Enum<E>>- See Also:
-
nonUnique
- Specified by:
nonUniquein classFunctionField<E extends Enum<E>>
-
copyFrom
- Specified by:
copyFromin classFunctionField<E extends Enum<E>>- 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 Enum<E>>
-
noDefault
- Specified by:
noDefaultin classFunctionField<E extends Enum<E>>
-
defaultTo
- Specified by:
defaultToin classFunctionField<E extends Enum<E>>
-
getValues
-
getValueType
-
getValue
- See Also:
-
as
- See Also:
-
cast
Deprecated.Useas(Class)instead -
getColumnValue
Deprecated.UseSchemaInfo.getColumnValue(EnumField,Enum)instead
-
as(Class)instead