Revision 45739 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/undo/DefaultFeatureCommandsStack.java
DefaultFeatureCommandsStack.java | ||
---|---|---|
24 | 24 |
package org.gvsig.fmap.dal.feature.impl.undo; |
25 | 25 |
|
26 | 26 |
import org.gvsig.fmap.dal.exception.DataException; |
27 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
|
27 | 28 |
import org.gvsig.fmap.dal.feature.Feature; |
28 | 29 |
import org.gvsig.fmap.dal.feature.FeatureReference; |
29 | 30 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
... | ... | |
145 | 146 |
command.execute(); |
146 | 147 |
} |
147 | 148 |
|
148 |
public void insert(Feature feature) throws DataException { |
|
149 |
@Override |
|
150 |
public void insert(EditableFeature feature) throws DataException { |
|
149 | 151 |
FeatureInsertCommand command = new FeatureInsertCommand(featureStore, |
150 | 152 |
feature, "_featureInsert"); |
151 | 153 |
add(command); |
152 | 154 |
command.execute(); |
153 | 155 |
} |
154 | 156 |
|
155 |
public void update(Feature feature, Feature oldFeature) throws DataException { |
|
157 |
@Override |
|
158 |
public void update(EditableFeature feature, Feature oldFeature) throws DataException { |
|
156 | 159 |
FeatureUpdateCommand command = new FeatureUpdateCommand(featureStore, |
157 | 160 |
feature, oldFeature, |
158 | 161 |
"_featureUpdate"); |
Also available in: Unified diff