public abstract class AbstractFeatureCommand extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
protected Feature |
feature |
protected DefaultFeatureStore |
featureStore |
DELETE, INSERT, UPDATE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFeatureCommand(DefaultFeatureStore featureStore,
Feature feature,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute() |
Feature |
getFeature()
Returns the Feature of this command.
|
int |
getType()
Returns the type of action related to data: insertion, deletion or
update.
|
void |
redo()
Re-does the following redoable command.
|
getDate, getDescription, toString, updateDateprotected Feature feature
protected DefaultFeatureStore featureStore
protected AbstractFeatureCommand(DefaultFeatureStore featureStore, Feature feature, java.lang.String description)
public Feature getFeature()
public int getType()
UndoRedoInfopublic void redo()
throws RedoException
CommandRedoException - if there is an error performing de redo actionpublic abstract void execute()
throws DataException
DataException