public class FeatureDeleteCommand extends AbstractFeatureCommand
feature, featureStoreDELETE, INSERT, UPDATE| Constructor and Description |
|---|
FeatureDeleteCommand(DefaultFeatureStore featureStore,
Feature feature,
java.lang.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 |
redo()
Re-does the following redoable command.
|
void |
undo()
Undoes the following undoable command.
|
getFeaturegetDate, getDescription, toString, updateDatepublic FeatureDeleteCommand(DefaultFeatureStore featureStore, Feature feature, java.lang.String description)
public void undo()
throws UndoException
CommandUndoException - if there is an error performing de undo actionpublic void redo()
throws RedoException
Commandredo in interface Commandredo in class AbstractFeatureCommandRedoException - if there is an error performing de redo actionpublic int getType()
UndoRedoInfogetType in interface UndoRedoInfogetType in class AbstractFeatureCommandpublic void execute()
throws DataException
execute in class AbstractFeatureCommandDataException