@Deprecated public class DefaultFeatureReference extends java.lang.Object implements FeatureReferenceProviderServices, Persistent
Constructor and Description |
---|
DefaultFeatureReference()
Deprecated.
Constructor used by the persistence manager.
|
DefaultFeatureReference(DefaultFeature feature)
Deprecated.
|
DefaultFeatureReference(FeatureStore store,
FeatureProvider fdata)
Deprecated.
|
DefaultFeatureReference(FeatureStore store,
java.lang.Object oid)
Deprecated.
|
DefaultFeatureReference(FeatureStore store,
java.lang.String code)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
calculatePK(FeatureProvider fdata)
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
java.lang.String |
getCode()
Deprecated.
|
Feature |
getFeature()
Deprecated.
Returns the referenced
Feature |
Feature |
getFeature(FeatureType featureType)
Deprecated.
Returns the referenced
Feature |
Feature |
getFeatureQuietly()
Deprecated.
|
java.lang.String |
getFeatureTypeId()
Deprecated.
Return the identifier of the
FeatureType of the represented
feature |
java.lang.String[] |
getKeyNames()
Deprecated.
Return the attribute names that compound the Primary Key of represented
feature
|
java.lang.Object |
getKeyValue(java.lang.String name)
Deprecated.
Return the value of an attribute that compound the Primary Key of
represented feature
|
java.lang.Object |
getOID()
Deprecated.
Return the OID (Object IDentifier) object that represents this reference
Note: this can be
null if provider does not
support OID |
int |
hashCode()
Deprecated.
|
boolean |
isNewFeature()
Deprecated.
Inform that represented feature is not stored in the original data store
|
void |
loadFromState(PersistentState state)
Deprecated.
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent()
Deprecated.
|
void |
saveToState(PersistentState state)
Deprecated.
Saves the internal state of the object on the provided
PersistentState object.
|
JsonObjectBuilder |
toJsonBuilder()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toJson, toJson, toJsonBuilder
public DefaultFeatureReference()
loadFromState(PersistentState)
to set
the values of the internal attributes that this class needs to work.public DefaultFeatureReference(DefaultFeature feature)
public DefaultFeatureReference(FeatureStore store, FeatureProvider fdata)
public DefaultFeatureReference(FeatureStore store, java.lang.Object oid)
public DefaultFeatureReference(FeatureStore store, java.lang.String code)
public void calculatePK(FeatureProvider fdata)
public Feature getFeature() throws DataException
FeatureReference
Feature
getFeature
in interface FeatureReference
Feature
identified by this FeatureReference
DataException
public Feature getFeatureQuietly()
getFeatureQuietly
in interface FeatureReference
public Feature getFeature(FeatureType featureType) throws DataException
FeatureReference
Feature
getFeature
in interface FeatureReference
featureType
- The FeatureType
to which the referenced
Feature
belongs.Feature
identified by this FeatureReference
DataException
public java.lang.Object getOID()
FeatureReferenceProviderServices
null
if provider does not
support OIDgetOID
in interface FeatureReferenceProviderServices
Object
that identifies a featureFeatureStoreProvider.getOIDType()
,
FeatureType.hasOID()
public boolean isNewFeature()
FeatureReference
isNewFeature
in interface FeatureReference
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String[] getKeyNames()
FeatureReferenceProviderServices
getKeyNames
in interface FeatureReferenceProviderServices
FeatureReferenceProviderServices.getKeyValue(String)
public java.lang.Object getKeyValue(java.lang.String name)
FeatureReferenceProviderServices
getKeyValue
in interface FeatureReferenceProviderServices
FeatureReferenceProviderServices.getKeyNames()
public java.lang.String getFeatureTypeId()
FeatureReferenceProviderServices
FeatureType
of the represented
featuregetFeatureTypeId
in interface FeatureReferenceProviderServices
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 java.lang.String getCode()
getCode
in interface FeatureReference
public static void registerPersistent()
public java.lang.String toString()
toString
in class java.lang.Object
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson