Package org.gvsig.fmap.dal.feature
Interface EditableFeatureAttributeDescriptor
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.dynobject.DynField,org.gvsig.tools.dynobject.DynField_LabelAttribute,org.gvsig.tools.dynobject.DynField_v2,FeatureAttributeDescriptor,org.gvsig.tools.util.LabeledValue<FeatureAttributeDescriptor>,org.gvsig.tools.persistence.Persistent,org.gvsig.json.SupportFromJson,org.gvsig.json.SupportToJson,org.gvsig.tools.dynobject.Tagged
public interface EditableFeatureAttributeDescriptor
extends FeatureAttributeDescriptor, org.gvsig.json.SupportFromJson
This interface represents a FeatureAttributeDescriptor in editable state. To
edit a FeatureAttributeDescriptor you have to obtain its instance of
EditableFeatureAttributeDescriptor and then perform editing operations on it.
Once you have completed the editing you can save the changes to the original
FeatureAttributeDescriptor. This is the only way to edit a
FeatureAttributeDescriptor.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.tools.dynobject.DynField_v2
org.gvsig.tools.dynobject.DynField_v2.AvailableValuesProvider -
Field Summary
Fields inherited from interface org.gvsig.tools.dynobject.DynField
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks attribute integrityReturns the attribute descriptor's name before it was changed or null if never changedsetAdditionalInfo(String infoName, Object value) Deprecated.setAdditionalInfo(String infoName, String value) Sets additional information of the attributesetAllowIndexDuplicateds(boolean allowDuplicateds) setAllowNull(boolean allowNull) Sets whether the related FeatureAttribute can have a null valuesetAvailableValuesFilter(org.gvsig.expressionevaluator.Expression filter) setAvoidCachingAvailableValues(boolean avoidCachingAvailableValues) setDataProfileName(String dataProfile) setDataType(int type) Sets the data typesetDataType(org.gvsig.tools.dataTypes.DataType dataType) setDateFormat(DateFormat dateFormat) If this attribute is of type Date, then this method set the date format set by the data store.setDefaultFormat(String format) setDefaultValue(Object defaultValue) Sets the default valuesetDisplaySize(int size) Set the required bytes to store this attribute.setEvaluator(org.gvsig.tools.evaluator.Evaluator evaluator) Sets the expression evaluator that the FeatureAttribute will usesetFeatureAttributeEmulator(String expression) setFeatureAttributeEmulator(org.gvsig.expressionevaluator.Expression expression) setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator) Sets theFeatureAttributeEmulatorthat is used to update the presentation of a field.setForeingkey(boolean isForeingkey, boolean isClosedList, String tableName, String codeName, String labelFormula) setGeometrySubType(int geometrySubType) Sets the geometry subtypesetGeometryType(int geometryType) Sets the geometry typesetGeometryType(int geometryType, int geometrySubType) setGeometryType(String geometryType) Sets the geometry type and subtype.setGeometryType(org.gvsig.fmap.geom.type.GeometryType geometryType) Sets the geometry typesetInterval(org.gvsig.timesupport.Interval interval) setIsAutomatic(boolean isAutomatic) Sets whether the related FeatureAttribute is part of the FeatureType's primary keysetIsIndexAscending(boolean ascending) setIsIndexed(boolean isIndexed) Sets if this attribute is indexed in the table.setIsPrimaryKey(boolean isPrimaryKey) Sets whether the related FeatureAttribute is part of the FeatureType's primary keysetIsReadOnly(boolean isReadOnly) Sets whether the related FeatureAttribute is read onlysetIsTime(boolean isTime) Sets is the attribute is a temporal attribute.setMaximumOccurrences(int maximumOccurrences) Sets the maximum number of occurrencessetMinimumOccurrences(int minimumOccurrences) Sets the number of minimum occurrencesSets the namesetObjectClass(Class theClass) Sets the Class to which the related FeatureAttribute can be castsetPrecision(int precision) Sets the precisionsetRoundMode(int roundMode) setScale(int scale) setSize(int size) Sets the size.setSRS(org.gvsig.crs.projection.lib.Projection SRS) Sets the SRS.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.tools.dynobject.DynField
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, validateMethods inherited from interface org.gvsig.tools.dynobject.DynField_LabelAttribute
getLabel, getShortLabel, setLabel, setShortLabelMethods inherited from interface org.gvsig.tools.dynobject.DynField_v2
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, setValidateElementsMethods inherited from interface org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor
allowIndexDuplicateds, allowNull, format, get, getAdditionalInfo, getAvailableValuesExpression, getAvailableValuesFilter, getCoercion, getCoercionContext, getCopy, getDataProfile, getDataProfileName, getDataTypeName, getDateFormat, getDefaultFormat, getDefaultValueCoerced, getDisplaySize, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getFeatureType, getFullDataTypeName, 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, setFeatureAttributeGetterMethods inherited from interface org.gvsig.tools.util.LabeledValue
getLabel, getValue, toStringMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToStateMethods inherited from interface org.gvsig.json.SupportFromJson
fromJsonMethods inherited from interface org.gvsig.json.SupportToJson
toJson, toJson, toJsonBuilder, toJsonBuilder
-
Method Details
-
checkIntegrity
Checks attribute integrity -
getForeingKey
EditableForeingKey getForeingKey()- Specified by:
getForeingKeyin interfaceFeatureAttributeDescriptor
-
setName
Sets the name- Parameters:
name- to set- Returns:
- this
-
setDataType
Sets the data type- Parameters:
type- one of the constants defined inDataTypes- Returns:
- this
-
setDataType
-
setDataProfileName
-
setSize
Sets the size. Used for arrays (byte, char/string,...)- Parameters:
size- a size of type int- Returns:
- this
-
setDisplaySize
Set the required bytes to store this attribute. This value is dependent of the store type.- Parameters:
size-- Returns:
-
setPrecision
Sets the precision- Parameters:
precision- of type int- Returns:
- this
-
setScale
-
setObjectClass
Sets the Class to which the related FeatureAttribute can be cast- Parameters:
theClass- Class to which the related FeatureAttribute can be cast- Returns:
- this
-
setMinimumOccurrences
Sets the number of minimum occurrences- Parameters:
minimumOccurrences-- Returns:
- this
-
setMaximumOccurrences
Sets the maximum number of occurrences- Parameters:
maximumOccurrences-- Returns:
-
setIsPrimaryKey
Sets whether the related FeatureAttribute is part of the FeatureType's primary key- Parameters:
isPrimaryKey- true if is part of the primary key- Returns:
- this
-
setEvaluator
Sets the expression evaluator that the FeatureAttribute will use- Parameters:
evaluator- an implementation of DAL's Evaluator interface- Returns:
- this
-
setAvoidCachingAvailableValues
EditableFeatureAttributeDescriptor setAvoidCachingAvailableValues(boolean avoidCachingAvailableValues) -
setFeatureAttributeEmulator
EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator) Sets theFeatureAttributeEmulatorthat is used to update the presentation of a field.- Parameters:
featureAttributeEmulator- theFeatureAttributeEmulatorto set.- Returns:
-
setFeatureAttributeEmulator
EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(org.gvsig.expressionevaluator.Expression expression) -
setFeatureAttributeEmulator
-
setIsReadOnly
Sets whether the related FeatureAttribute is read only- Parameters:
isReadOnly-- Returns:
- this
-
setAllowNull
Sets whether the related FeatureAttribute can have a null value- Parameters:
allowNull- a boolean value determining whether the FeatureAttribute can be null- Returns:
- this
-
setSRS
Sets the SRS.- Parameters:
SRS-- Returns:
-
setSRS
-
setInterval
-
setGeometryType
Sets the geometry type- Parameters:
geometryType-- Returns:
- this
-
setGeometrySubType
Sets the geometry subtype- Parameters:
geometrySubType-- Returns:
- this
-
setGeometryType
EditableFeatureAttributeDescriptor setGeometryType(org.gvsig.fmap.geom.type.GeometryType geometryType) Sets the geometry type- Parameters:
geometryType-- Returns:
- this
-
setGeometryType
Sets the geometry type and subtype. The format is:{geometryType}{sep}[geometrySubtype}where:- geometryType is the name of the type of geometry.
- sep is a character from ":/-!;#@".
- geometrySubtype is the name of the subtype of geometry.
- Parameters:
geometryType-- Returns:
-
setGeometryType
-
setDefaultValue
Sets the default value- Parameters:
defaultValue-- Returns:
- this
-
setAdditionalInfo
Sets additional information of the attribute- Parameters:
infoName-value-- Returns:
-
setAdditionalInfo
Deprecated. -
setIsAutomatic
Sets whether the related FeatureAttribute is part of the FeatureType's primary key- Parameters:
isAutomatic- true if is part of the primary key- Returns:
- this
-
setIsTime
Sets is the attribute is a temporal attribute.- Parameters:
isTime-trueif the attribute is temporal- Returns:
- this
-
setIsIndexed
Sets if this attribute is indexed in the table.- Parameters:
isIndexed-- Returns:
- this
-
setAllowIndexDuplicateds
-
setIsIndexAscending
-
getOriginalName
String getOriginalName()Returns the attribute descriptor's name before it was changed or null if never changed- Returns:
-
setDateFormat
If this attribute is of type Date, then this method set the date format set by the data store.- Parameters:
dateFormat-- Returns:
-
set
-
setRoundMode
-
setLocale
-
setForeingkey
EditableFeatureAttributeDescriptor setForeingkey(boolean isForeingkey, boolean isClosedList, String tableName, String codeName, String labelFormula) -
setTag
-
setAvailableValuesFilter
EditableFeatureAttributeDescriptor setAvailableValuesFilter(org.gvsig.expressionevaluator.Expression filter) -
setDefaultFormat
-