public interface EditableFeatureAttributeDescriptor extends FeatureAttributeDescriptor, SupportFromJson
DynField_v2.AvailableValuesProvider
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_AGGREGATE_WITH_COMPOSITION, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COLLABORATION_WITH_COMPOSITION, RELATION_TYPE_COMPOSITION, RELATION_TYPE_IDENTITY, RELATION_TYPE_NONE
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks attribute integrity
|
EditableForeingKey |
getForeingKey() |
java.lang.String |
getOriginalName()
Returns the attribute descriptor's name before it was changed or null if
never changed
|
EditableFeatureAttributeDescriptor |
set(java.lang.String name,
java.lang.Object value) |
EditableFeatureAttributeDescriptor |
setAdditionalInfo(java.lang.String infoName,
java.lang.Object value)
Deprecated.
|
EditableFeatureAttributeDescriptor |
setAdditionalInfo(java.lang.String infoName,
java.lang.String value)
Sets additional information of the attribute
|
EditableFeatureAttributeDescriptor |
setAllowIndexDuplicateds(boolean allowDuplicateds) |
EditableFeatureAttributeDescriptor |
setAllowNull(boolean allowNull)
Sets whether the related FeatureAttribute can have a null value
|
EditableFeatureAttributeDescriptor |
setAvailableValuesFilter(Expression filter) |
EditableFeatureAttributeDescriptor |
setAvoidCachingAvailableValues(boolean avoidCachingAvailableValues) |
EditableFeatureAttributeDescriptor |
setDataProfileName(java.lang.String dataProfile) |
EditableFeatureAttributeDescriptor |
setDataType(DataType dataType) |
EditableFeatureAttributeDescriptor |
setDataType(int type)
Sets the data type
|
EditableFeatureAttributeDescriptor |
setDateFormat(java.text.DateFormat dateFormat)
If this attribute is of type Date, then this method set the date format
set by the data store.
|
EditableFeatureAttributeDescriptor |
setDefaultFormat(java.lang.String format) |
EditableFeatureAttributeDescriptor |
setDefaultValue(java.lang.Object defaultValue)
Sets the default value
|
EditableFeatureAttributeDescriptor |
setDisplaySize(int size)
Set the required bytes to store this attribute.
|
EditableFeatureAttributeDescriptor |
setEvaluator(Evaluator evaluator)
Sets the expression evaluator that the FeatureAttribute will use
|
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(Expression expression) |
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
Sets the
FeatureAttributeEmulator that is used to update the
presentation of a field. |
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(java.lang.String expression) |
EditableFeatureAttributeDescriptor |
setForeingkey(boolean isForeingkey,
boolean isClosedList,
java.lang.String tableName,
java.lang.String codeName,
java.lang.String labelFormula) |
EditableFeatureAttributeDescriptor |
setGeometrySubType(int geometrySubType)
Deprecated.
use
setGeometryType(GeometryType) instead |
EditableFeatureAttributeDescriptor |
setGeometryType(GeometryType geometryType)
Sets the geometry type
|
EditableFeatureAttributeDescriptor |
setGeometryType(int geometryType)
Deprecated.
use
setGeometryType(GeometryType) instead |
EditableFeatureAttributeDescriptor |
setGeometryType(int geometryType,
int geometrySubType) |
EditableFeatureAttributeDescriptor |
setGeometryType(java.lang.String geometryType)
Sets the geometry type and subtype.
|
EditableFeatureAttributeDescriptor |
setInterval(Interval interval) |
EditableFeatureAttributeDescriptor |
setIsAutomatic(boolean isAutomatic)
Sets whether the related FeatureAttribute is part of the FeatureType's
primary key
|
EditableFeatureAttributeDescriptor |
setIsIndexAscending(boolean ascending) |
EditableFeatureAttributeDescriptor |
setIsIndexed(boolean isIndexed)
Sets if this attribute is indexed in the table.
|
EditableFeatureAttributeDescriptor |
setIsPrimaryKey(boolean isPrimaryKey)
Sets whether the related FeatureAttribute is part of the FeatureType's
primary key
|
EditableFeatureAttributeDescriptor |
setIsReadOnly(boolean isReadOnly)
Sets whether the related FeatureAttribute is read only
|
EditableFeatureAttributeDescriptor |
setIsTime(boolean isTime)
Sets is the attribute is a temporal attribute.
|
EditableFeatureAttributeDescriptor |
setLocale(java.util.Locale locale) |
EditableFeatureAttributeDescriptor |
setMaximumOccurrences(int maximumOccurrences)
Sets the maximum number of occurrences
|
EditableFeatureAttributeDescriptor |
setMinimumOccurrences(int minimumOccurrences)
Sets the number of minimum occurrences
|
EditableFeatureAttributeDescriptor |
setName(java.lang.String name)
Sets the name
|
EditableFeatureAttributeDescriptor |
setObjectClass(java.lang.Class theClass)
Sets the Class to which the related FeatureAttribute can be cast
|
EditableFeatureAttributeDescriptor |
setPrecision(int precision)
Sets the precision
|
EditableFeatureAttributeDescriptor |
setRoundMode(int roundMode) |
EditableFeatureAttributeDescriptor |
setScale(int scale) |
EditableFeatureAttributeDescriptor |
setSize(int size)
Sets the size.
|
EditableFeatureAttributeDescriptor |
setSRS(IProjection SRS)
Sets the SRS.
|
EditableFeatureAttributeDescriptor |
setSRS(java.lang.String SRS) |
EditableFeatureAttributeDescriptor |
setTag(java.lang.String name,
java.lang.Object value) |
allowIndexDuplicateds, allowNull, format, get, getAdditionalInfo, getAvailableValuesExpression, getAvailableValuesFilter, getCoercion, getCoercionContext, getCopy, getDataProfile, getDataProfileName, getDataTypeName, getDateFormat, getDefaultFormat, getDefaultValueCoerced, getDisplaySize, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getFeatureType, getGeometrySubType, getGeometryType, getGeomType, getIndex, getInterval, getLabelOfValue, getLocale, getLocalizedLabel, getLocalizedShortLabel, getMathContext, getMaximumOccurrences, getMinimumOccurrences, getObjectClass, getPrecision, getRequiredFieldNames, getRoundMode, getScale, getSize, getSRS, getStore, hasAvailableValues, hasConstantAvailableValues, hasDataProfile, hasDescription, hasLabel, hasOnlyMetadataChanges, hasShortLabel, isAutomatic, isAvoidCachingAvailableValues, isComputed, isForeingKey, isInAvailableValues, isIndexAscending, isIndexed, isPrimaryKey, isTime, recentUsed, setAvailableValuesExpression, setAvailableValuesExpression, setFeatureAttributeGetter
copyFrom, getAvailableValues, getAvailableValuesMethod, getCalculatedValue, getCalculateMethod, getClassNameOfItems, getClassNameOfValue, getClassOfItems, getCoercedDefaultValue, getDefaultValueSupplier, getDynClassOfItems, getDynClassOfValue, getRelationType, getTags, getTypeOfItems, getValidateElements, isAvailableValuesCalculated, isCalculated, setAvailableValues, setCalculateMethod, setClassOfItems, setClassOfItems, setClassOfItems, setClassOfValue, setClassOfValue, setDefaultValueSupplier, setRelationType, setTypeOfItems, setValidateElements
getLabel, getShortLabel, setLabel, setShortLabel
coerce, getAvailableValues, getClassOfValue, getDataType, getDefaultValue, getDescription, getElementsType, getGroup, getMaxValue, getMinValue, getName, getOder, getSubtype, getTheTypeOfAvailableValues, getType, isContainer, isHidden, isMandatory, isPersistent, isReadOnly, setAvailableValues, setAvailableValues, setClassOfValue, setDefaultDynValue, setDefaultFieldValue, setDescription, setElementsType, setElementsType, setGroup, setHidden, setMandatory, setMaxValue, setMinValue, setOrder, setPersistent, setReadOnly, setSubtype, setTheTypeOfAvailableValues, setType, setType, validate
clone, cloneQuietly, cloneQuietly
getLabel, getValue, label, toString
loadFromState, saveToState
toJson, toJson, toJsonBuilder, toJsonBuilder
fromJson
void checkIntegrity() throws AttributeFeatureTypeIntegrityException
EditableForeingKey getForeingKey()
getForeingKey
in interface FeatureAttributeDescriptor
EditableFeatureAttributeDescriptor setName(java.lang.String name)
name
- to setEditableFeatureAttributeDescriptor setDataType(int type)
type
- one of the constants defined in DataTypes
EditableFeatureAttributeDescriptor setDataType(DataType dataType)
EditableFeatureAttributeDescriptor setDataProfileName(java.lang.String dataProfile)
EditableFeatureAttributeDescriptor setSize(int size)
size
- a size of type intEditableFeatureAttributeDescriptor setDisplaySize(int size)
size
- EditableFeatureAttributeDescriptor setPrecision(int precision)
precision
- of type intEditableFeatureAttributeDescriptor setScale(int scale)
EditableFeatureAttributeDescriptor setObjectClass(java.lang.Class theClass)
theClass
- Class to which the related FeatureAttribute can be castEditableFeatureAttributeDescriptor setMinimumOccurrences(int minimumOccurrences)
minimumOccurrences
- EditableFeatureAttributeDescriptor setMaximumOccurrences(int maximumOccurrences)
maximumOccurrences
- EditableFeatureAttributeDescriptor setIsPrimaryKey(boolean isPrimaryKey)
isPrimaryKey
- true if is part of the primary keyEditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator)
evaluator
- an implementation of DAL's Evaluator interfaceEditableFeatureAttributeDescriptor setAvoidCachingAvailableValues(boolean avoidCachingAvailableValues)
EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
FeatureAttributeEmulator
that is used to update the
presentation of a field.featureAttributeEmulator
- the FeatureAttributeEmulator
to
set.EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(Expression expression)
EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(java.lang.String expression)
EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly)
isReadOnly
- EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull)
allowNull
- a boolean value determining whether the FeatureAttribute
can be nullEditableFeatureAttributeDescriptor setSRS(IProjection SRS)
SRS
- EditableFeatureAttributeDescriptor setSRS(java.lang.String SRS)
EditableFeatureAttributeDescriptor setInterval(Interval interval)
EditableFeatureAttributeDescriptor setGeometryType(int geometryType)
setGeometryType(GeometryType)
insteadgeometryType
- EditableFeatureAttributeDescriptor setGeometrySubType(int geometrySubType)
setGeometryType(GeometryType)
insteadgeometrySubType
- EditableFeatureAttributeDescriptor setGeometryType(GeometryType geometryType)
geometryType
- EditableFeatureAttributeDescriptor setGeometryType(java.lang.String geometryType)
{geometryType}{sep}[geometrySubtype}
where:
geometryType
- EditableFeatureAttributeDescriptor setGeometryType(int geometryType, int geometrySubType)
EditableFeatureAttributeDescriptor setDefaultValue(java.lang.Object defaultValue)
defaultValue
- EditableFeatureAttributeDescriptor setAdditionalInfo(java.lang.String infoName, java.lang.String value)
infoName
- value
- @Deprecated EditableFeatureAttributeDescriptor setAdditionalInfo(java.lang.String infoName, java.lang.Object value)
EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
isAutomatic
- true if is part of the primary keyEditableFeatureAttributeDescriptor setIsTime(boolean isTime)
isTime
- true
if the attribute is temporalEditableFeatureAttributeDescriptor setIsIndexed(boolean isIndexed)
isIndexed
- EditableFeatureAttributeDescriptor setAllowIndexDuplicateds(boolean allowDuplicateds)
EditableFeatureAttributeDescriptor setIsIndexAscending(boolean ascending)
java.lang.String getOriginalName()
EditableFeatureAttributeDescriptor setDateFormat(java.text.DateFormat dateFormat)
dateFormat
- EditableFeatureAttributeDescriptor set(java.lang.String name, java.lang.Object value)
EditableFeatureAttributeDescriptor setRoundMode(int roundMode)
EditableFeatureAttributeDescriptor setLocale(java.util.Locale locale)
EditableFeatureAttributeDescriptor setForeingkey(boolean isForeingkey, boolean isClosedList, java.lang.String tableName, java.lang.String codeName, java.lang.String labelFormula)
EditableFeatureAttributeDescriptor setTag(java.lang.String name, java.lang.Object value)
EditableFeatureAttributeDescriptor setAvailableValuesFilter(Expression filter)
EditableFeatureAttributeDescriptor setDefaultFormat(java.lang.String format)