public class FeatureDeleteCommand extends AbstractFeatureCommand
feature, featureStore
DELETE, INSERT, UPDATE
Constructor and Description |
---|
FeatureDeleteCommand(DefaultFeatureStore featureStore,
Feature feature,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
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 FeatureDeleteCommand(DefaultFeatureStore featureStore, Feature feature, 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