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) |
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) |
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.
|
void |
setDynValue(String name,
Object value) |
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, setUppublic 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 FeatureStoreTransformpublic boolean isTransformsOriginalValues()
FeatureStoreTransformFeatureType definitions is changed.isTransformsOriginalValues in interface FeatureStoreTransformFeatureStoreTransforms#isTransformsOriginalValues()}protected 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
getDynValue in interface FeatureStoreTransformDynFieldNotFoundExceptionpublic boolean hasDynValue(String name)
hasDynValue in interface FeatureStoreTransformpublic void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue in interface FeatureStoreTransformDynFieldNotFoundExceptionpublic 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()}.