public class FeatureUpdateCommand extends AbstractFeatureCommand
feature, featureStore
DELETE, INSERT, UPDATE
Constructor and Description |
---|
FeatureUpdateCommand(DefaultFeatureStore featureStore,
Feature feature,
Feature oldFeature,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
Feature |
getOldFeature() |
int |
getType()
Returns the type of action related to data: insertion, deletion or
update.
|
void |
undo()
Undoes the following undoable command.
|
getFeature, redo
getDate, getDescription, toString, updateDate
public FeatureUpdateCommand(DefaultFeatureStore featureStore, Feature feature, Feature oldFeature, String description)
public void undo() throws UndoException
Command
UndoException
- if there is an error performing de undo actionpublic int getType()
UndoRedoInfo
getType
in interface UndoRedoInfo
getType
in class AbstractFeatureCommand
public void execute() throws DataException
execute
in class AbstractFeatureCommand
DataException
public Feature getOldFeature()