Class AbstractFeatureCommand
java.lang.Object
org.gvsig.tools.undo.command.impl.AbstractCommand
org.gvsig.fmap.dal.feature.impl.undo.command.AbstractFeatureCommand
- All Implemented Interfaces:
org.gvsig.tools.undo.command.Command,org.gvsig.tools.undo.UndoRedoInfo
- Direct Known Subclasses:
FeatureDeleteCommand,FeatureInsertCommand,FeatureUpdateCommand
public abstract class AbstractFeatureCommand
extends org.gvsig.tools.undo.command.impl.AbstractCommand
Add the methods and constructors to use Features.
- Author:
- Vicente Caballero Navarro
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gvsig.fmap.dal.feature.Featureprotected DefaultFeatureStoreFields inherited from interface org.gvsig.tools.undo.UndoRedoInfo
DELETE, INSERT, UPDATE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFeatureCommand(DefaultFeatureStore featureStore, org.gvsig.fmap.dal.feature.Feature feature, String description) -
Method Summary
Methods inherited from class org.gvsig.tools.undo.command.impl.AbstractCommand
getDate, getDescription, toString, updateDateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.tools.undo.command.Command
undo
-
Field Details
-
feature
protected org.gvsig.fmap.dal.feature.Feature feature -
featureStore
-
-
Constructor Details
-
AbstractFeatureCommand
protected AbstractFeatureCommand(DefaultFeatureStore featureStore, org.gvsig.fmap.dal.feature.Feature feature, String description)
-
-
Method Details
-
getFeature
public org.gvsig.fmap.dal.feature.Feature getFeature()Returns the Feature of this command.- Returns:
- Feature.
-
getType
public int getType() -
redo
public void redo() throws org.gvsig.tools.undo.RedoException- Throws:
org.gvsig.tools.undo.RedoException
-
execute
public abstract void execute() throws org.gvsig.fmap.dal.exception.DataException- Throws:
org.gvsig.fmap.dal.exception.DataException
-