Class JoinTransform

java.lang.Object
org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
org.gvsig.app.join.dal.feature.JoinTransform
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.dal.feature.FeatureStoreTransform, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class JoinTransform extends org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform

    ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    A default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyTransform(org.gvsig.fmap.dal.feature.Feature source, org.gvsig.fmap.dal.feature.EditableFeature target)
     
     
    org.gvsig.fmap.dal.feature.FeatureType
    getSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType arg0)
     
    boolean
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    static void
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
     
    void
    setValues(org.gvsig.fmap.dal.feature.FeatureStore store1, org.gvsig.fmap.dal.feature.FeatureStore store2, String keyAttr1, String keyAttr2, String prefix1, String prefix2, String[] attrs)
    Initializes all the necessary data for this transform

    Methods inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform

    apply, clone, getDefaultFeatureType, getDescription, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, isTransformsOriginalValues, revoke, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadata

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • JoinTransform

      public JoinTransform()
      A default constructor
  • Method Details

    • setValues

      public void setValues(org.gvsig.fmap.dal.feature.FeatureStore store1, org.gvsig.fmap.dal.feature.FeatureStore store2, String keyAttr1, String keyAttr2, String prefix1, String prefix2, String[] attrs)
      Initializes all the necessary data for this transform
      Parameters:
      store1 - store whose default feature type is the target of this transform
      store2 - store whose default feature type will provide the new attributes to join
      keyAttr1 - key attribute in store1 that matches keyAttr2 in store2 (foreign key), used for joining both stores.
      keyAttr2 - key attribute in store2 that matches keyAttr1 in store2 (foreign key), used for joining both stores.
      prefix1 -
      prefix2 -
      attrs - names of the attributes in store2 that will be joined to store1.
    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • applyTransform

      public void applyTransform(org.gvsig.fmap.dal.feature.Feature source, org.gvsig.fmap.dal.feature.EditableFeature target) throws org.gvsig.fmap.dal.exception.DataException
      Parameters:
      source -
      target -
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getSourceFeatureTypeFrom

      public org.gvsig.fmap.dal.feature.FeatureType getSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType arg0)
    • registerPersistent

      public static void registerPersistent()
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • getDynValue

      public Object getDynValue(String name) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
      Specified by:
      getDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransform
      Overrides:
      getDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
      Throws:
      org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
    • hasDynValue

      public boolean hasDynValue(String name)
      Specified by:
      hasDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransform
      Overrides:
      hasDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform