public class FeatureUpdateCommand extends AbstractFeatureCommand
feature, featureStoreDELETE, INSERT, UPDATE| Constructor and Description |
|---|
FeatureUpdateCommand(DefaultFeatureStore featureStore,
EditableFeature feature,
Feature oldFeature,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
EditableFeature |
getFeature()
Returns the Feature of this command.
|
Feature |
getOldFeature() |
int |
getType()
Returns the type of action related to data: insertion, deletion or
update.
|
void |
undo()
Undoes the following undoable command.
|
redogetDate, getDescription, toString, updateDatepublic FeatureUpdateCommand(DefaultFeatureStore featureStore, EditableFeature feature, Feature oldFeature, java.lang.String description)
public EditableFeature getFeature()
AbstractFeatureCommandgetFeature in class AbstractFeatureCommandpublic void undo()
throws UndoException
CommandUndoException - if there is an error performing de undo actionpublic int getType()
UndoRedoInfogetType in interface UndoRedoInfogetType in class AbstractFeatureCommandpublic void execute()
throws DataException
execute in class AbstractFeatureCommandDataExceptionpublic Feature getOldFeature()