public class FeatureReferenceOID extends java.lang.Object implements FeatureReferenceProviderServices, Persistent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OID_TYPE |
| Constructor and Description |
|---|
FeatureReferenceOID() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode() |
Feature |
getFeature()
Returns the referenced
Feature |
Feature |
getFeature(FeatureType featureType)
Returns the referenced
Feature |
Feature |
getFeatureQuietly() |
java.lang.String |
getFeatureTypeId()
Return the identifier of the
FeatureType of the represented
feature |
java.lang.String[] |
getKeyNames()
Return the attribute names that compound the Primary Key of represented
feature
|
java.lang.Object |
getKeyValue(java.lang.String name)
Return the value of an attribute that compound the Primary Key of
represented feature
|
java.lang.Object |
getOID()
Return the OID (Object IDentifier) object that represents this reference
Note: this can be
null if provider does not
support OID |
int |
hashCode() |
boolean |
isNewFeature()
Inform that represented feature is not stored in the original data store
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
JsonObjectBuilder |
toJsonBuilder() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoJson, toJson, toJsonBuilderpublic static final java.lang.String OID_TYPE
public java.lang.Object getOID()
FeatureReferenceProviderServicesnull if provider does not
support OIDgetOID in interface FeatureReferenceProviderServicesObject that identifies a featureFeatureStoreProvider.getOIDType(),
FeatureType.hasOID()public 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 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 boolean isNewFeature()
FeatureReferenceisNewFeature in interface FeatureReferencepublic java.lang.String getCode()
getCode in interface FeatureReferencepublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic JsonObjectBuilder toJsonBuilder()
toJsonBuilder in interface SupportToJsonpublic java.lang.String toString()
toString in class java.lang.Object