Class DelegatingODataEntryToIntegrationKeyValueGenerator

java.lang.Object
de.hybris.platform.odata2services.odata.integrationkey.impl.DelegatingODataEntryToIntegrationKeyValueGenerator
All Implemented Interfaces:
IntegrationKeyValueGenerator<TypeDescriptor,org.apache.olingo.odata2.api.ep.entry.ODataEntry>

public final class DelegatingODataEntryToIntegrationKeyValueGenerator extends Object implements IntegrationKeyValueGenerator<TypeDescriptor,org.apache.olingo.odata2.api.ep.entry.ODataEntry>
Generates integration key value for a given TypeDescriptor from the attribute values represented by a ODataEntry
  • Constructor Details

    • DelegatingODataEntryToIntegrationKeyValueGenerator

      public DelegatingODataEntryToIntegrationKeyValueGenerator()
  • Method Details

    • generate

      public String generate(TypeDescriptor typeDescriptor, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
      Description copied from interface: IntegrationKeyValueGenerator
      Generates a compound key value for a data structure that has one or several key attributes/properties.
      Specified by:
      generate in interface IntegrationKeyValueGenerator<TypeDescriptor,org.apache.olingo.odata2.api.ep.entry.ODataEntry>
      Parameters:
      typeDescriptor - definition of the payload structure that can be used to determine which elements of the payload structure contain the key value(s).
      entry - a data structure to generate the key value for.
      Returns:
      integration key string representing the compound value of all key elements of the data structure
    • setoDataEntryToMapConverter

      public void setoDataEntryToMapConverter(ODataEntryToMapConverter oDataEntryToMapConverter)
    • setMapToIntegrationKeyGenerator

      public void setMapToIntegrationKeyGenerator(IntegrationKeyValueGenerator<TypeDescriptor,Map<String,Object>> mapToIntegrationKeyGenerator)