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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(TypeDescriptor typeDescriptor, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) Generates a compound key value for a data structure that has one or several key attributes/properties.voidsetMapToIntegrationKeyGenerator(IntegrationKeyValueGenerator<TypeDescriptor, Map<String, Object>> mapToIntegrationKeyGenerator) voidsetoDataEntryToMapConverter(ODataEntryToMapConverter oDataEntryToMapConverter)
-
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:IntegrationKeyValueGeneratorGenerates a compound key value for a data structure that has one or several key attributes/properties.- Specified by:
generatein interfaceIntegrationKeyValueGenerator<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
-
setMapToIntegrationKeyGenerator
public void setMapToIntegrationKeyGenerator(IntegrationKeyValueGenerator<TypeDescriptor, Map<String, Object>> mapToIntegrationKeyGenerator)
-