Revision 29289 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/FeatureTypeManager.java
FeatureTypeManager.java | ||
---|---|---|
57 | 57 |
import org.gvsig.fmap.dal.feature.FeatureStoreTransform; |
58 | 58 |
import org.gvsig.fmap.dal.feature.FeatureType; |
59 | 59 |
import org.gvsig.fmap.dal.feature.impl.expansionadapter.ExpansionAdapter; |
60 |
import org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider.FeatureTypeChanged; |
|
60 | 61 |
import org.gvsig.tools.persistence.PersistenceException; |
61 | 62 |
import org.gvsig.tools.persistence.PersistentState; |
62 | 63 |
|
... | ... | |
399 | 400 |
|
400 | 401 |
} |
401 | 402 |
|
402 |
public Iterator getOriginalsFeatureTypesUpdated() { |
|
403 |
public class FeatureTypesChangedItem implements FeatureTypeChanged { |
|
404 |
|
|
405 |
private FeatureType source; |
|
406 |
private FeatureType target; |
|
407 |
|
|
408 |
public FeatureTypesChangedItem(FeatureType source, FeatureType target) { |
|
409 |
this.source = source; |
|
410 |
this.target = target; |
|
411 |
} |
|
412 |
|
|
413 |
public FeatureType getSource() { |
|
414 |
return source; |
|
415 |
} |
|
416 |
|
|
417 |
public FeatureType getTarget() { |
|
418 |
return target; |
|
419 |
} |
|
420 |
|
|
421 |
} |
|
422 |
|
|
423 |
public Iterator getFeatureTypesChanged() throws DataException { |
|
403 | 424 |
// FIXME this don't work for Store.fType.size() > 1 |
404 | 425 |
List list = new ArrayList(); |
405 | 426 |
if (modifiedFromOriginal.size() > 0) { |
406 |
list.add(this.getOriginalFeatureType()); |
|
427 |
FeatureType src = this.getOriginalFeatureType(); |
|
428 |
list.add(new FeatureTypesChangedItem(src, this.store |
|
429 |
.getFeatureType(src.getId()))); |
|
407 | 430 |
} |
408 | 431 |
return list.iterator(); |
409 | 432 |
} |
433 |
|
|
410 | 434 |
} |
Also available in: Unified diff