Revision 45647 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 | ||
---|---|---|
120 | 120 |
import org.gvsig.fmap.dal.feature.impl.editing.memory.FeatureManager; |
121 | 121 |
import org.gvsig.fmap.dal.feature.impl.editing.memory.FeatureTypeManager; |
122 | 122 |
import org.gvsig.fmap.dal.feature.impl.editing.memory.SpatialManager; |
123 |
import org.gvsig.fmap.dal.feature.impl.featurereference.FeatureReferenceFactory; |
|
123 | 124 |
import org.gvsig.fmap.dal.feature.impl.featureset.DefaultFeatureSet; |
124 | 125 |
import org.gvsig.fmap.dal.feature.impl.undo.DefaultFeatureCommandsStack; |
125 | 126 |
import org.gvsig.fmap.dal.feature.impl.undo.FeatureCommandsStack; |
... | ... | |
1188 | 1189 |
return; |
1189 | 1190 |
} |
1190 | 1191 |
invalidateIndexes(); |
1191 |
featureManager = new FeatureManager(); |
|
1192 |
featureManager = new FeatureManager(this);
|
|
1192 | 1193 |
featureTypeManager = new FeatureTypeManager(this); |
1193 | 1194 |
spatialManager = new SpatialManager(this, provider.getEnvelope()); |
1194 | 1195 |
|
... | ... | |
2028 | 2029 |
removeCalculatedAttributes(featureTypeManager.getFeatureTypesChanged()).iterator()); |
2029 | 2030 |
} |
2030 | 2031 |
invalidateIndexes(); |
2031 |
featureManager = new FeatureManager(); |
|
2032 |
featureManager = new FeatureManager(this);
|
|
2032 | 2033 |
featureTypeManager = new FeatureTypeManager(this); |
2033 | 2034 |
spatialManager = new SpatialManager(this, provider.getEnvelope()); |
2034 | 2035 |
|
... | ... | |
2504 | 2505 |
public Feature getFeatureByReference(FeatureReference reference) |
2505 | 2506 |
throws DataException { |
2506 | 2507 |
checkNotInAppendMode(); |
2507 |
DefaultFeatureReference ref = (DefaultFeatureReference) reference;
|
|
2508 |
FeatureReferenceProviderServices ref = (FeatureReferenceProviderServices) reference;
|
|
2508 | 2509 |
FeatureType featureType; |
2509 | 2510 |
if (ref.getFeatureTypeId() == null) { |
2510 | 2511 |
featureType = this.getDefaultFeatureType(); |
... | ... | |
3509 | 3510 |
|
3510 | 3511 |
@Override |
3511 | 3512 |
public FeatureReference getFeatureReference(String code) { |
3512 |
FeatureReference featureReference = new DefaultFeatureReference(this, code);
|
|
3513 |
FeatureReference featureReference = FeatureReferenceFactory.createFromCode(this, code);
|
|
3513 | 3514 |
return featureReference; |
3514 | 3515 |
} |
3515 | 3516 |
|
Also available in: Unified diff