public class FeatureReferencePK extends java.lang.Object implements FeatureReferenceProviderServices, Persistent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PK_TYPE |
Constructor and Description |
---|
FeatureReferencePK() |
Modifier and Type | Method and Description |
---|---|
void |
calculatePK(FeatureProvider fdata) |
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, wait
toJson, toJson, toJsonBuilder
public static final java.lang.String PK_TYPE
public void calculatePK(FeatureProvider fdata)
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 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 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 boolean isNewFeature()
FeatureReference
isNewFeature
in interface FeatureReference
public java.lang.String getCode()
getCode
in interface FeatureReference
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson
public java.lang.String toString()
toString
in class java.lang.Object