Interface FeatureStoreTransform

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent
All Known Implementing Classes:
AbstractFeatureStoreTransform

public interface FeatureStoreTransform extends org.gvsig.tools.persistence.Persistent, org.gvsig.tools.lang.Cloneable
A FeatureStoreTransform provides a mechanism for mapping a source FeatureType to a target FeatureType, allowing to build different views (as in database view) over different feature types even from different stores.
  • Method Details

    • getDefaultFeatureType

      FeatureType getDefaultFeatureType() throws DataException
      Returns the default FeatureType.
      Returns:
      default FeatureType
      Throws:
      DataException
    • getFeatureTypes

      List<FeatureType> getFeatureTypes() throws DataException
      Returns this FeatureStoreTransform's FeatureType(s)
      Returns:
      Throws:
      DataException
    • getSourceFeatureTypeFrom

      FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
      Returns the original store FeatureType that replaces targetFeatureType of this FeatureStoreTransform's
      Returns:
      source FeatureType
    • applyTransform

      void applyTransform(Feature source, EditableFeature target) throws DataException
      Applies this transform between two features, copying the source data to the target feature.
      Parameters:
      source - feature whose data will be used as source
      target - feature in which the source data will be copied
      Throws:
      DataException
    • setFeatureStore

      void setFeatureStore(FeatureStore featureStore)
      Sets the FeatureStore to which this transform is applied.
      Parameters:
      featureStore - FeatureStore to which this transform is applied.
    • getFeatureStore

      FeatureStore getFeatureStore()
      Returns the FeatureStore to which this transform belongs.
      Returns:
      FeatureStore to which this transform belongs.
    • isTransformsOriginalValues

      boolean isTransformsOriginalValues()
      Retruns true if this make changes of any attributes values or false if only FeatureType definitions is changed.
      Returns:
    • getName

      String getName()
    • getDescription

      String getDescription()
    • setSourceMetadata

      void setSourceMetadata(org.gvsig.tools.dynobject.DynObject metadata)
      Sets the original metadata for this transform
      Parameters:
      metadata -
    • setDynValue

      void setDynValue(String name, Object value) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
      Throws:
      org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
    • hasDynValue

      boolean hasDynValue(String name)
    • getDynValue

      Object getDynValue(String name) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
      Throws:
      org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
    • setUp

      void setUp() throws Exception
      This method must perform the necessary actions to set up the transformation. It is called automatically when adding the transformation to the store and when the store is retrieved from the persistence.
      Throws:
      Exception
    • apply

      void apply(FeatureStore store)
    • revoke

      void revoke(FeatureStore store)