org.gvsig.fmap.dal.feature
Interface FeatureStoreTransform

All Superinterfaces:
Persistent
All Known Implementing Classes:
AbstractFeatureStoreTransform

public interface FeatureStoreTransform
extends Persistent

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.

Author:
jmvivo

Method Summary
 void applyTransform(Feature source, EditableFeature target)
          Applies this transform between two features, copying the source data to the target feature.
 FeatureType getDefaultFeatureType()
          Returns the default FeatureType.
 String getDescription()
           
 Object getDynValue(String name)
           
 FeatureStore getFeatureStore()
          Returns the FeatureStore to which this transform belongs.
 List getFeatureTypes()
          Returns this FeatureStoreTransform's FeatureType(s)
 String getName()
           
 FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
          Returns the original store FeatureType that replaces targetFeatureType of this FeatureStoreTransform's
 boolean hasDynValue(String name)
           
 boolean isTransformsOriginalValues()
          Retruns true if this make changes of any attributes values or false if only FeatureType definitions is changed.
 void setDynValue(String name, Object value)
           
 void setFeatureStore(FeatureStore featureStore)
          Sets the FeatureStore to which this transform is applied.
 void setSourceMetadata(DynObject metadata)
          Sets the original metadata for this transform
 
Methods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
 

Method Detail

getDefaultFeatureType

FeatureType getDefaultFeatureType()
                                  throws DataException
Returns the default FeatureType.

Returns:
default FeatureType
Throws:
DataException

getFeatureTypes

List getFeatureTypes()
                     throws DataException
Returns this FeatureStoreTransform's FeatureType(s)

Returns:
Throws:
DataException

getSourceFeatureTypeFrom

FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
Returns the original store FeatureType that replaces targetFeatureType of this FeatureStoreTransform's

Returns:
source FeatureType
Throws:
DataException

applyTransform

void applyTransform(Feature source,
                    EditableFeature target)
                    throws DataException
Applies this transform between two features, copying the source data to the target feature.

Parameters:
source - feature whose data will be used as source
target - feature in which the source data will be copied
Throws:
DataException

setFeatureStore

void setFeatureStore(FeatureStore featureStore)
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 only FeatureType definitions is changed.

Returns:
See Also:
FeatureStoreTransforms#isTransformsOriginalValues()}

getName

String getName()

getDescription

String getDescription()

setSourceMetadata

void setSourceMetadata(DynObject metadata)
Sets the original metadata for this transform

Parameters:
metadata -

setDynValue

void setDynValue(String name,
                 Object value)
                 throws DynFieldNotFoundException
Throws:
DynFieldNotFoundException

hasDynValue

boolean hasDynValue(String name)

getDynValue

Object getDynValue(String name)
                   throws DynFieldNotFoundException
Throws:
DynFieldNotFoundException


Copyright © 2004-2012 gvSIG. All Rights Reserved.