Class DefaultODataEntryToIntegrationKeyValueGenerator
- java.lang.Object
-
- de.hybris.platform.integrationservices.integrationkey.impl.AbstractIntegrationKeyValueGenerator<org.apache.olingo.odata2.api.edm.EdmEntitySet,org.apache.olingo.odata2.api.ep.entry.ODataEntry>
-
- de.hybris.platform.odata2services.odata.integrationkey.impl.DefaultODataEntryToIntegrationKeyValueGenerator
-
- All Implemented Interfaces:
IntegrationKeyValueGenerator<org.apache.olingo.odata2.api.edm.EdmEntitySet,org.apache.olingo.odata2.api.ep.entry.ODataEntry>
@Deprecated(since="1905.2002-CEP", forRemoval=true) public class DefaultODataEntryToIntegrationKeyValueGenerator extends AbstractIntegrationKeyValueGenerator<org.apache.olingo.odata2.api.edm.EdmEntitySet,org.apache.olingo.odata2.api.ep.entry.ODataEntry>Deprecated, for removal: This API element is subject to removal in a future version.This class will be removed because it cannot guarantee the correct integrationKey is generated. TheTypeDescriptoris needed in order to generate the correct key. Use theItemTypeDescriptorServiceto find the TypeDescriptor and then useDelegatingODataEntryToIntegrationKeyValueGenerator.generate(TypeDescriptor, ODataEntry)to generate the correct integrationKey.
-
-
Constructor Summary
Constructors Constructor Description DefaultODataEntryToIntegrationKeyValueGenerator()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.Optional<java.lang.String>findMatchingNavigationPropertyIn(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String entityName)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.Stringgenerate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry)Deprecated, for removal: This API element is subject to removal in a future version.Generates a compound key value for a data structure that has one or several key attributes/properties.protected org.apache.olingo.odata2.api.edm.EdmNavigationPropertygetNavigationProperty(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, java.lang.String name)Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetNavigationPropertyName(org.apache.olingo.odata2.api.edm.EdmNavigationProperty property)Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetNavigationPropertyToRole(org.apache.olingo.odata2.api.edm.EdmNavigationProperty property)Deprecated, for removal: This API element is subject to removal in a future version.protected voidpopulateKeyValueFromNavigationProperty(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, IntegrationKeyAlias aliasComponents, IntegrationKeyValue integrationKeyValue, java.lang.String propertyName)Deprecated, for removal: This API element is subject to removal in a future version.protected voidpopulateKeyValueFromSimpleProperty(org.apache.olingo.odata2.api.edm.EdmEntitySet type, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, IntegrationKeyValue keyValue, java.util.List<java.lang.String> propertyNames)Deprecated, for removal: This API element is subject to removal in a future version.protected voidsetPropertyValueInIntegrationKey(IntegrationKeyValue keyValue, org.apache.olingo.odata2.api.edm.EdmEntitySet type, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, java.lang.String propertyName)Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringtransformValueToString(java.lang.Object attributeValue)Deprecated, for removal: This API element is subject to removal in a future version.Implementations should transform a value into string representation.-
Methods inherited from class de.hybris.platform.integrationservices.integrationkey.impl.AbstractIntegrationKeyValueGenerator
encodeValue, getEncoding, setEncoding
-
-
-
-
Method Detail
-
generate
public java.lang.String generate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IntegrationKeyValueGeneratorGenerates a compound key value for a data structure that has one or several key attributes/properties.- Parameters:
entitySet- definition of the payload structure that can be used to determine which elements of the payload structure contain the key value(s).oDataEntry- 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
-
populateKeyValueFromSimpleProperty
protected void populateKeyValueFromSimpleProperty(org.apache.olingo.odata2.api.edm.EdmEntitySet type, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, IntegrationKeyValue keyValue, java.util.List<java.lang.String> propertyNames)Deprecated, for removal: This API element is subject to removal in a future version.
-
setPropertyValueInIntegrationKey
protected void setPropertyValueInIntegrationKey(IntegrationKeyValue keyValue, org.apache.olingo.odata2.api.edm.EdmEntitySet type, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, java.lang.String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.
-
populateKeyValueFromNavigationProperty
protected void populateKeyValueFromNavigationProperty(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, IntegrationKeyAlias aliasComponents, IntegrationKeyValue integrationKeyValue, java.lang.String propertyName)Deprecated, for removal: This API element is subject to removal in a future version.
-
findMatchingNavigationPropertyIn
protected java.util.Optional<java.lang.String> findMatchingNavigationPropertyIn(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String entityName)Deprecated, for removal: This API element is subject to removal in a future version.
-
getNavigationProperty
protected org.apache.olingo.odata2.api.edm.EdmNavigationProperty getNavigationProperty(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, java.lang.String name)Deprecated, for removal: This API element is subject to removal in a future version.
-
getNavigationPropertyToRole
protected java.lang.String getNavigationPropertyToRole(org.apache.olingo.odata2.api.edm.EdmNavigationProperty property)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getNavigationPropertyName
protected java.lang.String getNavigationPropertyName(org.apache.olingo.odata2.api.edm.EdmNavigationProperty property)
Deprecated, for removal: This API element is subject to removal in a future version.
-
transformValueToString
protected java.lang.String transformValueToString(java.lang.Object attributeValue)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractIntegrationKeyValueGeneratorImplementations should transform a value into string representation. For instance Date.- Specified by:
transformValueToStringin classAbstractIntegrationKeyValueGenerator<org.apache.olingo.odata2.api.edm.EdmEntitySet,org.apache.olingo.odata2.api.ep.entry.ODataEntry>- Parameters:
attributeValue- the value to be converted.- Returns:
- The string representation
-
-