Package org.gvsig.fmap.dal.feature
Interface FeatureStoreTransform
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
- All Known Implementing Classes:
AbstractFeatureStoreTransform
public interface FeatureStoreTransform
extends org.gvsig.tools.persistence.Persistent, org.gvsig.tools.lang.Cloneable
A FeatureStoreTransform provides a mechanism for mapping a source FeatureType
to a target FeatureType, allowing to build different views (as in database
view) over different feature types even from different stores.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(FeatureStore store) voidapplyTransform(Feature source, EditableFeature target) Applies this transform between two features, copying the source data to the target feature.Returns the defaultFeatureType.getDynValue(String name) Returns the FeatureStore to which this transform belongs.Returns this FeatureStoreTransform's FeatureType(s)getName()getSourceFeatureTypeFrom(FeatureType targetFeatureType) Returns the original storeFeatureTypethat replaces targetFeatureType of this FeatureStoreTransform'sbooleanhasDynValue(String name) booleanRetruns true if this make changes of any attributes values or false if onlyFeatureTypedefinitions is changed.voidrevoke(FeatureStore store) voidsetDynValue(String name, Object value) voidsetFeatureStore(FeatureStore featureStore) Sets the FeatureStore to which this transform is applied.voidsetSourceMetadata(org.gvsig.tools.dynobject.DynObject metadata) Sets the original metadata for this transformvoidsetUp()This method must perform the necessary actions to set up the transformation.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Method Details
-
getDefaultFeatureType
Returns the defaultFeatureType.- Returns:
- default
FeatureType - Throws:
DataException
-
getFeatureTypes
Returns this FeatureStoreTransform's FeatureType(s)- Returns:
- Throws:
DataException
-
getSourceFeatureTypeFrom
Returns the original storeFeatureTypethat replaces targetFeatureType of this FeatureStoreTransform's- Returns:
- source
FeatureType
-
applyTransform
Applies this transform between two features, copying the source data to the target feature.- Parameters:
source- feature whose data will be used as sourcetarget- feature in which the source data will be copied- Throws:
DataException
-
setFeatureStore
Sets the FeatureStore to which this transform is applied.- Parameters:
featureStore- FeatureStore to which this transform is applied.
-
getFeatureStore
FeatureStore getFeatureStore()Returns the FeatureStore to which this transform belongs.- Returns:
- FeatureStore to which this transform belongs.
-
isTransformsOriginalValues
boolean isTransformsOriginalValues()Retruns true if this make changes of any attributes values or false if onlyFeatureTypedefinitions is changed.- Returns:
-
getName
String getName() -
getDescription
String getDescription() -
setSourceMetadata
void setSourceMetadata(org.gvsig.tools.dynobject.DynObject metadata) Sets the original metadata for this transform- Parameters:
metadata-
-
setDynValue
void setDynValue(String name, Object value) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException - Throws:
org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
-
hasDynValue
-
getDynValue
Object getDynValue(String name) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException - Throws:
org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
-
setUp
This method must perform the necessary actions to set up the transformation. It is called automatically when adding the transformation to the store and when the store is retrieved from the persistence.- Throws:
Exception
-
apply
-
revoke
-