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, setSourceMetadata
public 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.DataException
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 boolean isTransformsOriginalValues()
FeatureStoreTransform
FeatureType
definitions is changed.FeatureStoreTransforms#isTransformsOriginalValues()}
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