@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  FeatureTypeof 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  nullif 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, waittoJson, toJson, toJsonBuilderpublic 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
FeatureReferenceFeaturegetFeature in interface FeatureReferenceFeature identified by this FeatureReferenceDataExceptionpublic Feature getFeatureQuietly()
getFeatureQuietly in interface FeatureReferencepublic Feature getFeature(FeatureType featureType) throws DataException
FeatureReferenceFeaturegetFeature in interface FeatureReferencefeatureType - The FeatureType to which the referenced
            Feature belongs.Feature identified by this FeatureReferenceDataExceptionpublic java.lang.Object getOID()
FeatureReferenceProviderServicesnull if provider does not
 support OIDgetOID in interface FeatureReferenceProviderServicesObject that identifies a featureFeatureStoreProvider.getOIDType(), 
FeatureType.hasOID()public boolean isNewFeature()
FeatureReferenceisNewFeature in interface FeatureReferencepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String[] getKeyNames()
FeatureReferenceProviderServicesgetKeyNames in interface FeatureReferenceProviderServicesFeatureReferenceProviderServices.getKeyValue(String)public java.lang.Object getKeyValue(java.lang.String name)
FeatureReferenceProviderServicesgetKeyValue in interface FeatureReferenceProviderServicesFeatureReferenceProviderServices.getKeyNames()public java.lang.String getFeatureTypeId()
FeatureReferenceProviderServicesFeatureType of the represented
 featuregetFeatureTypeId in interface FeatureReferenceProviderServicespublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic java.lang.String getCode()
getCode in interface FeatureReferencepublic static void registerPersistent()
public java.lang.String toString()
toString in class java.lang.Objectpublic JsonObjectBuilder toJsonBuilder()
toJsonBuilder in interface SupportToJson