Package com.luciad.ogc.filter.evaluator
Interface ILcdOGCFeatureIDRetriever
public interface ILcdOGCFeatureIDRetriever
Interface for classes that can return the feature ID of a given object.
Implementations of this interface must be thread safe.
For most use-cases, there is no need to implement this interface yourself.
Instead, use the
factory method
to
obtain an instance.-
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdOGCFeatureIDRetriever
createDefaultFeatureIDRetriever
(ILcdModel aSourceModel) Creates anILcdOGCFeatureIDRetriever
instance which can deal with the domain objects fromaSourceModel
.retrieveFeatureID
(Object aObject) Returns the feature ID of the given object.
-
Method Details
-
createDefaultFeatureIDRetriever
Creates anILcdOGCFeatureIDRetriever
instance which can deal with the domain objects fromaSourceModel
. The returned retriever return ids forILcdDataObject
instances which are annotated with aTLcdPrimaryKeyAnnotation
. If the object is notILcdDataObject
, or its type doesn't haveTLcdPrimaryKeyAnnotation
, an ID is returned based onSystem.identityHashCode
.- Parameters:
aSourceModel
- the given model.- Returns:
- a new
ILcdOGCFeatureIDRetriever
instance. - Since:
- 2017.0
-
retrieveFeatureID
Returns the feature ID of the given object.
-