Revision 44854 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/featureset/DefaultFeatureSet.java
DefaultFeatureSet.java | ||
---|---|---|
32 | 32 |
import org.gvsig.fmap.dal.exception.DataException; |
33 | 33 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
34 | 34 |
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor; |
35 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
|
36 | 35 |
import org.gvsig.fmap.dal.feature.Feature; |
37 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
|
38 | 36 |
import org.gvsig.fmap.dal.feature.FeatureIndexes; |
39 | 37 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
40 | 38 |
import org.gvsig.fmap.dal.feature.FeatureQueryOrder; |
... | ... | |
149 | 147 |
transformsToUse.getSourceFeatureTypeFrom(this.defaultFeatureType); |
150 | 148 |
theQueryForProvider.setFeatureTypeId(ftype.getId()); |
151 | 149 |
this.defatulFeatureTypeForProvider = ftype; |
152 |
|
|
150 |
|
|
153 | 151 |
if (transformsToUse.isTransformsOriginalValues()) { |
154 | 152 |
theQueryForProvider.clearFilter(); |
155 | 153 |
FeatureQueryOrder fqo = theQueryForProvider.getOrder(); |
... | ... | |
222 | 220 |
return true; |
223 | 221 |
} |
224 | 222 |
|
223 |
@Override |
|
225 | 224 |
public FeatureType getDefaultFeatureType() { |
226 | 225 |
return this.defaultFeatureType; |
227 | 226 |
} |
228 | 227 |
|
228 |
@Override |
|
229 | 229 |
public List getFeatureTypes() { |
230 | 230 |
return Collections.unmodifiableList(this.featureTypes); |
231 | 231 |
} |
232 | 232 |
|
233 |
@Override |
|
233 | 234 |
public long getSize() throws DataException { |
234 | 235 |
this.checkSourceStoreModified(); |
235 | 236 |
if (size < 0) { |
... | ... | |
590 | 591 |
|
591 | 592 |
} |
592 | 593 |
|
594 |
@Override |
|
593 | 595 |
public void delete(Feature feature) throws DataException { |
594 | 596 |
this.featureToIgnoreNotification = feature; |
595 | 597 |
this.store.delete(feature); |
... | ... | |
600 | 602 |
this.ownFeaturesModified = true; |
601 | 603 |
} |
602 | 604 |
|
605 |
@Override |
|
603 | 606 |
public void insert(EditableFeature feature) throws DataException { |
604 | 607 |
this.featureToIgnoreNotification = feature; |
605 | 608 |
this.store.insert(feature); |
... | ... | |
610 | 613 |
this.ownFeaturesModified = true; |
611 | 614 |
} |
612 | 615 |
|
616 |
@Override |
|
613 | 617 |
public void update(EditableFeature feature) throws DataException { |
614 | 618 |
this.featureToIgnoreNotification = feature; |
615 | 619 |
this.store.update(feature); |
... | ... | |
617 | 621 |
this.ownFeaturesModified = true; |
618 | 622 |
} |
619 | 623 |
|
624 |
@Override |
|
620 | 625 |
public void commitChanges() throws DataException { |
621 | 626 |
this.ignoreChanges = true; |
622 | 627 |
this.store.commitChanges(); |
... | ... | |
624 | 629 |
|
625 | 630 |
} |
626 | 631 |
|
632 |
@Override |
|
627 | 633 |
public FeatureStore getFeatureStore() { |
628 | 634 |
return store; |
629 | 635 |
} |
Also available in: Unified diff