Revision 24152
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/FeatureStore.java | ||
---|---|---|
94 | 94 |
|
95 | 95 |
public List getFeatureTypes() throws DataException; |
96 | 96 |
|
97 |
public EditableFeature createFeature() throws DataException; |
|
97 |
public EditableFeature createNewFeature() throws DataException;
|
|
98 | 98 |
|
99 |
public EditableFeature createFeature(FeatureType type, Feature defaultValues) |
|
99 |
public EditableFeature createNewFeature(FeatureType type, Feature defaultValues)
|
|
100 | 100 |
throws DataException; |
101 | 101 |
|
102 |
public EditableFeature createFeature(FeatureType type, boolean defaultValues) |
|
102 |
public EditableFeature createNewFeature(FeatureType type, boolean defaultValues)
|
|
103 | 103 |
throws DataException; |
104 | 104 |
|
105 |
public EditableFeature createFeature(boolean defaultValues) |
|
105 |
public EditableFeature createNewFeature(boolean defaultValues)
|
|
106 | 106 |
throws DataException; |
107 | 107 |
|
108 | 108 |
public void update(EditableFeature feature) throws DataException; |
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/impl/FeatureManager.java | ||
---|---|---|
163 | 163 |
private Feature getCorrectFeature(Feature feature, FeatureStore store, |
164 | 164 |
FeatureType featureType) throws DataException { |
165 | 165 |
Iterator iterator=featureType.iterator(); |
166 |
EditableFeature newFeature=store.createFeature(featureType, false); |
|
166 |
EditableFeature newFeature=store.createNewFeature(featureType, false);
|
|
167 | 167 |
FeatureType orgType = feature.getType(); |
168 | 168 |
int orgIndex; |
169 | 169 |
while (iterator.hasNext()) { |
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/impl/DefaultFeatureStore.java | ||
---|---|---|
763 | 763 |
Iterator it1 = features.iterator(); |
764 | 764 |
while (it1.hasNext()) { |
765 | 765 |
Feature feature = (Feature) it1.next(); |
766 |
target.insert(target.createFeature(type, feature)); |
|
766 |
target.insert(target.createNewFeature(type, feature));
|
|
767 | 767 |
} |
768 | 768 |
features.dispose(); |
769 | 769 |
target.finishEditing(); |
... | ... | |
987 | 987 |
return null; |
988 | 988 |
} |
989 | 989 |
|
990 |
public EditableFeature createFeature(FeatureType type, |
|
990 |
public EditableFeature createNewFeature(FeatureType type,
|
|
991 | 991 |
Feature defaultValues) |
992 | 992 |
throws DataException { |
993 | 993 |
try { |
... | ... | |
1002 | 1002 |
} |
1003 | 1003 |
} |
1004 | 1004 |
|
1005 |
public EditableFeature createFeature(FeatureType type, |
|
1005 |
public EditableFeature createNewFeature(FeatureType type,
|
|
1006 | 1006 |
boolean defaultValues) |
1007 | 1007 |
throws DataException { |
1008 | 1008 |
try { |
... | ... | |
1017 | 1017 |
} |
1018 | 1018 |
} |
1019 | 1019 |
|
1020 |
public EditableFeature createFeature(boolean defaultValues) |
|
1020 |
public EditableFeature createNewFeature(boolean defaultValues)
|
|
1021 | 1021 |
throws DataException { |
1022 |
return this.createFeature(this.getDefaultFeatureType(), defaultValues); |
|
1022 |
return this.createNewFeature(this.getDefaultFeatureType(), defaultValues);
|
|
1023 | 1023 |
} |
1024 | 1024 |
|
1025 |
public EditableFeature createFeature() throws DataException { |
|
1026 |
return this.createFeature(this.getDefaultFeatureType(), true); |
|
1025 |
public EditableFeature createNewFeature() throws DataException {
|
|
1026 |
return this.createNewFeature(this.getDefaultFeatureType(), true);
|
|
1027 | 1027 |
} |
1028 | 1028 |
|
1029 | 1029 |
public EditableFeatureType createFeatureType() { |
Also available in: Unified diff