public class JoinTransform extends AbstractFeatureStoreTransform
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name
Constructor and Description |
---|
JoinTransform()
A default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(Feature source,
EditableFeature target)
Applies this transform between two features, copying the source data to
the target feature.
|
java.lang.Object |
getDynValue(java.lang.String name) |
FeatureType |
getSourceFeatureTypeFrom(FeatureType arg0)
Returns the original store
FeatureType that replaces
targetFeatureType of this FeatureStoreTransform's |
boolean |
hasDynValue(java.lang.String name) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setUp()
This method must perform the necessary actions to set up the transformation.
|
void |
setValues(FeatureStore store1,
FeatureStore store2,
java.lang.String keyAttr1,
java.lang.String keyAttr2,
java.lang.String prefix1,
java.lang.String prefix2,
java.lang.String[] attrs)
Initializes all the necessary data for this transform
|
apply, clone, getDefaultFeatureType, getDescription, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, isTransformsOriginalValues, revoke, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadata
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public void setValues(FeatureStore store1, FeatureStore store2, java.lang.String keyAttr1, java.lang.String keyAttr2, java.lang.String prefix1, java.lang.String prefix2, java.lang.String[] attrs)
store1
- store whose default feature type is the target of this
transformstore2
- store whose default feature type will provide the new
attributes to joinkeyAttr1
- 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.public void setUp() throws java.lang.Exception
FeatureStoreTransform
java.lang.Exception
public void applyTransform(Feature source, EditableFeature target) throws DataException
FeatureStoreTransform
source
- target
- DataException
public FeatureType getSourceFeatureTypeFrom(FeatureType arg0)
FeatureStoreTransform
FeatureType
that replaces
targetFeatureType of this FeatureStoreTransform'sFeatureType
public static void registerPersistent()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractFeatureStoreTransform
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractFeatureStoreTransform
PersistenceException
public java.lang.Object getDynValue(java.lang.String name) throws DynFieldNotFoundException
getDynValue
in interface FeatureStoreTransform
getDynValue
in class AbstractFeatureStoreTransform
DynFieldNotFoundException
public boolean hasDynValue(java.lang.String name)
hasDynValue
in interface FeatureStoreTransform
hasDynValue
in class AbstractFeatureStoreTransform