Class FeatureUpdateCommand

java.lang.Object
org.gvsig.tools.undo.command.impl.AbstractCommand
org.gvsig.fmap.dal.feature.impl.undo.command.AbstractFeatureCommand
org.gvsig.fmap.dal.feature.impl.undo.command.FeatureUpdateCommand
All Implemented Interfaces:
org.gvsig.tools.undo.command.Command, org.gvsig.tools.undo.UndoRedoInfo

public class FeatureUpdateCommand extends AbstractFeatureCommand
Author:
gvSIG Team
  • Field Summary

    Fields inherited from class org.gvsig.fmap.dal.feature.impl.undo.command.AbstractFeatureCommand

    feature, featureStore

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

    DELETE, INSERT, UPDATE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FeatureUpdateCommand(DefaultFeatureStore featureStore, org.gvsig.fmap.dal.feature.EditableFeature feature, org.gvsig.fmap.dal.feature.Feature oldFeature, String description)
     
  • Method Summary

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

    Methods inherited from class org.gvsig.fmap.dal.feature.impl.undo.command.AbstractFeatureCommand

    redo

    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
  • Constructor Details

    • FeatureUpdateCommand

      public FeatureUpdateCommand(DefaultFeatureStore featureStore, org.gvsig.fmap.dal.feature.EditableFeature feature, org.gvsig.fmap.dal.feature.Feature oldFeature, String description)
  • Method Details

    • getFeature

      public org.gvsig.fmap.dal.feature.EditableFeature getFeature()
      Description copied from class: AbstractFeatureCommand
      Returns the Feature of this command.
      Overrides:
      getFeature in class AbstractFeatureCommand
      Returns:
      Feature.
    • undo

      public void undo() throws org.gvsig.tools.undo.UndoException
      Throws:
      org.gvsig.tools.undo.UndoException
    • getType

      public int getType()
      Specified by:
      getType in interface org.gvsig.tools.undo.UndoRedoInfo
      Overrides:
      getType in class AbstractFeatureCommand
    • execute

      public void execute() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      execute in class AbstractFeatureCommand
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getOldFeature

      public org.gvsig.fmap.dal.feature.Feature getOldFeature()