Revision 44262 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultEditableFeatureAttributeDescriptor.java
DefaultEditableFeatureAttributeDescriptor.java | ||
---|---|---|
39 | 39 |
import org.slf4j.LoggerFactory; |
40 | 40 |
|
41 | 41 |
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor; |
42 |
import org.gvsig.fmap.dal.feature.EditableForeingKey; |
|
42 | 43 |
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator; |
43 | 44 |
import org.gvsig.fmap.dal.feature.FeatureType; |
45 |
import org.gvsig.fmap.dal.feature.ForeingKey; |
|
44 | 46 |
import org.gvsig.fmap.dal.feature.exception.AttributeFeatureTypeIntegrityException; |
45 | 47 |
import org.gvsig.fmap.dal.feature.exception.AttributeFeatureTypeSizeException; |
46 | 48 |
import org.gvsig.fmap.geom.Geometry; |
... | ... | |
114 | 116 |
this.allowNull = allowNull; |
115 | 117 |
return this; |
116 | 118 |
} |
119 |
|
|
120 |
@Override |
|
121 |
public EditableForeingKey getForeingKey() { |
|
122 |
if( this.foreingKey==null ) { |
|
123 |
this.foreingKey = new DefaultForeingKey(); |
|
124 |
this.foreingKey.setDescriptor(this); |
|
125 |
} |
|
126 |
return this.foreingKey; |
|
127 |
} |
|
117 | 128 |
|
118 | 129 |
public EditableFeatureAttributeDescriptor setDataType(int type) { |
119 | 130 |
updateStrongChanges(this.dataType, type); |
Also available in: Unified diff