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 Details

    • createDefaultFeatureIDRetriever

      static ILcdOGCFeatureIDRetriever createDefaultFeatureIDRetriever(ILcdModel aSourceModel)
      Creates an ILcdOGCFeatureIDRetriever instance which can deal with the domain objects from aSourceModel.

      The returned retriever return ids for ILcdDataObject instances which are annotated with a TLcdPrimaryKeyAnnotation.

      If the object is not ILcdDataObject, or its type doesn't have TLcdPrimaryKeyAnnotation, an ID is returned based on System.identityHashCode.

      Parameters:
      aSourceModel - the given model.
      Returns:
      a new ILcdOGCFeatureIDRetriever instance.
      Since:
      2017.0
    • retrieveFeatureID

      String retrieveFeatureID(Object aObject)
      Returns the feature ID of the given object.