svn-gvsig-desktop / 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 / EditingManager.java @ 43840
History | View | Annotate | Download (1.96 KB)
1 |
|
---|---|
2 |
package org.gvsig.fmap.dal.feature.impl; |
3 |
|
4 |
import java.util.Iterator; |
5 |
import org.gvsig.fmap.dal.exception.DataException; |
6 |
import org.gvsig.fmap.dal.feature.Feature; |
7 |
import org.gvsig.fmap.dal.feature.FeatureReference; |
8 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
9 |
import org.gvsig.fmap.dal.feature.FeatureType; |
10 |
import org.gvsig.fmap.dal.feature.spi.FeatureProvider; |
11 |
import org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider.FeatureTypeChanged; |
12 |
|
13 |
|
14 |
public interface EditingManager { |
15 |
|
16 |
public void dispose(); |
17 |
|
18 |
public void delete(Feature feature); |
19 |
|
20 |
public void delete(FeatureReference featureReference); |
21 |
|
22 |
public void add(Feature newFeature); |
23 |
|
24 |
public int update(Feature newFeature, Feature oldFeature); |
25 |
|
26 |
public int update(FeatureType type, FeatureType oldType); |
27 |
|
28 |
public void restore(FeatureReference featureReference); |
29 |
|
30 |
public void restore(FeatureReference featureReference, int code); |
31 |
|
32 |
public void restore(String featureTypeId); |
33 |
|
34 |
public void restore(String featureTypeId, int code); |
35 |
|
36 |
public boolean isDeleted(Feature feature); |
37 |
|
38 |
public boolean isDeleted(FeatureReference featureReference); |
39 |
|
40 |
public boolean isDeleted(FeatureType type); |
41 |
|
42 |
public boolean isDeleted(String featureTypeId); |
43 |
|
44 |
public boolean isSelectionCompromised(); |
45 |
|
46 |
public Iterator<FeatureProvider> getDeletedFeatures(); |
47 |
public Iterator<FeatureProvider> getInsertedFeatures(); |
48 |
public Iterator<FeatureProvider> getUpdatedFeatures(); |
49 |
|
50 |
public Iterator<FeatureTypeChanged> getFeatureTypesChanged() throws DataException; |
51 |
|
52 |
public FeatureType getFeatureType(String id) throws DataException ; |
53 |
|
54 |
public Feature getFeature(FeatureReference reference, FeatureStore store, FeatureType type) throws DataException; |
55 |
|
56 |
|
57 |
/*
|
58 |
it = featureTypeManager.newsIterator();
|
59 |
|
60 |
position = expansionManager.update(type, oldType);
|
61 |
|
62 |
expansionManager.restore(oldType.getId(),position);
|
63 |
|
64 |
spatialManager.cancelModifies();
|
65 |
*/
|
66 |
} |