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

    Fields
    Modifier and Type
    Field
    Description
    protected org.gvsig.fmap.dal.feature.Feature
     
     

    Fields inherited from interface org.gvsig.tools.undo.UndoRedoInfo

    DELETE, INSERT, UPDATE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractFeatureCommand(DefaultFeatureStore featureStore, org.gvsig.fmap.dal.feature.Feature feature, String description)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
     
    org.gvsig.fmap.dal.feature.Feature
    Returns the Feature of this command.
    int
     
    void
     

    Methods inherited from class org.gvsig.tools.undo.command.impl.AbstractCommand

    getDate, getDescription, toString, updateDate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.gvsig.tools.undo.command.Command

    undo
  • Field Details

    • feature

      protected org.gvsig.fmap.dal.feature.Feature feature
    • featureStore

      protected DefaultFeatureStore 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