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,
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, updateDate
protected Feature feature
protected DefaultFeatureStore featureStore
protected AbstractFeatureCommand(DefaultFeatureStore featureStore, Feature feature, String description)
public Feature getFeature()
public int getType()
UndoRedoInfo
public void redo() throws RedoException
Command
RedoException
- if there is an error performing de redo actionpublic abstract void execute() throws DataException
DataException