public abstract class AbstractFeatureStoreTransform extends Object implements FeatureStoreTransform
FeatureStoreTransform interface to other transform implementations. It is recommended
to extend this class when implementing new FeatureStoreTransforms.
The FeatureType of this class is not persistent: it has to be generated
by the child implementations of this abstract class when they are created
using the persistence mechanism.| Modifier and Type | Field and Description |
|---|---|
static String |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME |
protected String |
descripcion |
static String |
METADATA_DEFINITION_NAME |
protected String |
name |
| Constructor and Description |
|---|
AbstractFeatureStoreTransform() |
AbstractFeatureStoreTransform(String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a copy of the object.
|
FeatureType |
getDefaultFeatureType()
Returns the default
FeatureType. |
String |
getDescription() |
Object |
getDynValue(String name)
Get the metadata value for the name
name. |
FeatureStore |
getFeatureStore()
Returns the FeatureStore to which this transform belongs.
|
List |
getFeatureTypes()
Returns this FeatureStoreTransform's FeatureType(s)
|
String |
getName() |
protected DynObject |
getSourceMetadata() |
boolean |
hasDynValue(String name)
Return true is the value
name has a value in the metadata
Overwrite this method to support that this transform overwrite the values
of the statore's metadata. |
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 |
setDynValue(String name,
Object value)
Set the value of a metadata.
|
void |
setFeatureStore(FeatureStore store)
Sets the FeatureStore to which this transform is applied.
|
protected void |
setFeatureTypes(List types,
FeatureType defaultType) |
void |
setSourceMetadata(DynObject metadata)
Sets the original metadata for this transform
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyTransform, getSourceFeatureTypeFrom, isTransformsOriginalValuespublic static final String METADATA_DEFINITION_NAME
public static final String ABSTRACT_FEATURESTORE_DYNCLASS_NAME
protected String name
protected String descripcion
public String getDescription()
getDescription in interface FeatureStoreTransformpublic String getName()
getName in interface FeatureStoreTransformpublic FeatureType getDefaultFeatureType() throws DataException
FeatureStoreTransformFeatureType.getDefaultFeatureType in interface FeatureStoreTransformFeatureTypeDataExceptionpublic List getFeatureTypes() throws DataException
FeatureStoreTransformgetFeatureTypes in interface FeatureStoreTransformDataExceptionpublic void setFeatureStore(FeatureStore store)
FeatureStoreTransformsetFeatureStore in interface FeatureStoreTransformstore - FeatureStore to which this transform is applied.public FeatureStore getFeatureStore()
FeatureStoreTransformgetFeatureStore in interface FeatureStoreTransformprotected void setFeatureTypes(List types, FeatureType defaultType)
public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic final void setSourceMetadata(DynObject metadata)
FeatureStoreTransformsetSourceMetadata in interface FeatureStoreTransformprotected DynObject getSourceMetadata()
public Object getDynValue(String name) throws DynFieldNotFoundException
name.
Overwrite this method to support that this transform overwrite the values
of the statore's metadata.getDynValue in interface FeatureStoreTransformDynFieldNotFoundException{#Metadata.getDynValue}public boolean hasDynValue(String name)
name has a value in the metadata
Overwrite this method to support that this transform overwrite the values
of the statore's metadata.hasDynValue in interface FeatureStoreTransform{#Metadata.hasDynValue}public void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue in interface FeatureStoreTransformDynFieldNotFoundException{#Metadata.getDynValue}public Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.