Revision 44501 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/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
196 | 196 |
private SpatialManager spatialManager; |
197 | 197 |
|
198 | 198 |
private FeatureType defaultFeatureType = null; |
199 |
private List featureTypes = new ArrayList();
|
|
199 |
private List<FeatureType> featureTypes = new ArrayList<>();
|
|
200 | 200 |
|
201 | 201 |
private int mode = MODE_QUERY; |
202 | 202 |
private long versionOfUpdate = 0; |
... | ... | |
1234 | 1234 |
if (type == null) { |
1235 | 1235 |
throw new NullFeatureTypeException(getName()); |
1236 | 1236 |
} |
1237 |
if (mode == MODE_QUERY && type.hasOnlyMetadataChanges(this.featureTypeManager.getOriginalFeatureType())) { |
|
1238 |
FeatureType theType = type.getCopy(); |
|
1239 |
if( defaultFeatureType.getId().equals(theType.getId()) ) { |
|
1240 |
defaultFeatureType = theType; |
|
1241 |
} |
|
1242 |
for (int i = 0; i < featureTypes.size(); i++) { |
|
1243 |
FeatureType featureType = featureTypes.get(i); |
|
1244 |
if( featureType.getId().equals(theType.getId()) ) { |
|
1245 |
featureTypes.set(i, theType); |
|
1246 |
break; |
|
1247 |
} |
|
1248 |
} |
|
1249 |
saveDALFile(); |
|
1250 |
return ; |
|
1251 |
} |
|
1237 | 1252 |
boolean typehasStrongChanges = ((DefaultEditableFeatureType) type).hasStrongChanges(); |
1238 | 1253 |
if (typehasStrongChanges) { |
1239 | 1254 |
checkInEditingMode(); |
Also available in: Unified diff