public abstract class AbstractFeatureStoreTransform extends java.lang.Object implements FeatureStoreTransform
FeatureStoreTransform
interface to other
transform implementations. It is recommended to extend this class when
implementing new FeatureStoreTransform
s.
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 java.lang.String |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME |
protected java.lang.String |
descripcion |
static java.lang.String |
METADATA_DEFINITION_NAME |
protected java.lang.String |
name |
Constructor and Description |
---|
AbstractFeatureStoreTransform() |
AbstractFeatureStoreTransform(java.lang.String name,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
void |
apply(FeatureStore store) |
java.lang.Object |
clone()
Creates a copy of the object.
|
FeatureType |
getDefaultFeatureType()
Returns the default
FeatureType . |
java.lang.String |
getDescription() |
java.lang.Object |
getDynValue(java.lang.String name) |
FeatureStore |
getFeatureStore()
Returns the FeatureStore to which this transform belongs.
|
java.util.List |
getFeatureTypes()
Returns this FeatureStoreTransform's FeatureType(s)
|
java.lang.String |
getName() |
protected DynObject |
getSourceMetadata() |
boolean |
hasDynValue(java.lang.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 |
revoke(FeatureStore store) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDynValue(java.lang.String name,
java.lang.Object value) |
void |
setFeatureStore(FeatureStore store)
Sets the FeatureStore to which this transform is applied.
|
protected void |
setFeatureTypes(java.util.List types,
FeatureType defaultType) |
void |
setSourceMetadata(DynObject metadata)
Sets the original metadata for this transform
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyTransform, getSourceFeatureTypeFrom, setUp
cloneQuietly, cloneQuietly
public static final java.lang.String METADATA_DEFINITION_NAME
public static final java.lang.String ABSTRACT_FEATURESTORE_DYNCLASS_NAME
protected java.lang.String name
protected java.lang.String descripcion
public AbstractFeatureStoreTransform()
public AbstractFeatureStoreTransform(java.lang.String name, java.lang.String description)
public java.lang.String getDescription()
getDescription
in interface FeatureStoreTransform
public java.lang.String getName()
getName
in interface FeatureStoreTransform
public FeatureType getDefaultFeatureType() throws DataException
FeatureStoreTransform
FeatureType
.getDefaultFeatureType
in interface FeatureStoreTransform
FeatureType
DataException
public java.util.List getFeatureTypes() throws DataException
FeatureStoreTransform
getFeatureTypes
in interface FeatureStoreTransform
DataException
public void setFeatureStore(FeatureStore store)
FeatureStoreTransform
setFeatureStore
in interface FeatureStoreTransform
store
- FeatureStore to which this transform is applied.public FeatureStore getFeatureStore()
FeatureStoreTransform
getFeatureStore
in interface FeatureStoreTransform
public boolean isTransformsOriginalValues()
FeatureStoreTransform
FeatureType
definitions is changed.isTransformsOriginalValues
in interface FeatureStoreTransform
FeatureStoreTransforms#isTransformsOriginalValues()}
protected void setFeatureTypes(java.util.List types, FeatureType defaultType)
public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public final void setSourceMetadata(DynObject metadata)
FeatureStoreTransform
setSourceMetadata
in interface FeatureStoreTransform
protected DynObject getSourceMetadata()
public java.lang.Object getDynValue(java.lang.String name) throws DynFieldNotFoundException
getDynValue
in interface FeatureStoreTransform
DynFieldNotFoundException
public boolean hasDynValue(java.lang.String name)
hasDynValue
in interface FeatureStoreTransform
public void setDynValue(java.lang.String name, java.lang.Object value) throws DynFieldNotFoundException
setDynValue
in interface FeatureStoreTransform
DynFieldNotFoundException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- 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()}.
public void apply(FeatureStore store)
apply
in interface FeatureStoreTransform
public void revoke(FeatureStore store)
revoke
in interface FeatureStoreTransform