public class JoinTransform extends AbstractFeatureStoreTransform
| Modifier and Type | Field and Description |
|---|---|
static 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.
|
FeatureType |
getSourceFeatureTypeFrom(FeatureType arg0)
Returns the original store
FeatureType that replaces
targetFeatureType of this FeatureStoreTransform's |
void |
initialize(FeatureStore store1,
FeatureStore store2,
String keyAttr1,
String keyAttr2,
String prefix1,
String prefix2,
String[] attrs)
Initializes all the necessary data for this transform
|
boolean |
isTransformsOriginalValues()
Retruns true if this make changes of any attributes values or false if
only
FeatureType definitions is changed. |
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.
|
clone, getDefaultFeatureType, getDescription, getDynValue, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, hasDynValue, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadatapublic static final String PERSISTENCE_DEFINITION_NAME
public void initialize(FeatureStore store1, FeatureStore store2, String keyAttr1, String keyAttr2, String prefix1, String prefix2, String[] attrs) throws DataException
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.attrs - names of the attributes in store2 that will be joined to
store1.DataExceptionpublic void applyTransform(Feature source, EditableFeature target) throws DataException
FeatureStoreTransformsource - target - DataExceptionpublic FeatureType getSourceFeatureTypeFrom(FeatureType arg0)
FeatureStoreTransformFeatureType that replaces
targetFeatureType of this FeatureStoreTransform'sFeatureTypepublic boolean isTransformsOriginalValues()
FeatureStoreTransformFeatureType definitions is changed.FeatureStoreTransforms#isTransformsOriginalValues()}public 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 AbstractFeatureStoreTransformPersistenceException