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, setSourceMetadataequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlypublic 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
FeatureStoreTransformjava.lang.Exceptionpublic void applyTransform(Feature source, EditableFeature target) throws DataException
FeatureStoreTransformsource - target - DataExceptionpublic FeatureType getSourceFeatureTypeFrom(FeatureType arg0)
FeatureStoreTransformFeatureType that replaces
targetFeatureType of this FeatureStoreTransform'sFeatureTypepublic static void registerPersistent()
public void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractFeatureStoreTransformPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractFeatureStoreTransformPersistenceExceptionpublic java.lang.Object getDynValue(java.lang.String name)
throws DynFieldNotFoundException
getDynValue in interface FeatureStoreTransformgetDynValue in class AbstractFeatureStoreTransformDynFieldNotFoundExceptionpublic boolean hasDynValue(java.lang.String name)
hasDynValue in interface FeatureStoreTransformhasDynValue in class AbstractFeatureStoreTransform