public class DefaultMapToIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>> extends AbstractIntegrationKeyGenerator<T,E>
| Constructor and Description |
|---|
DefaultMapToIntegrationKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToKeyValueMap(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> integrationKeyValues,
T type,
E entry,
java.lang.String propertyName) |
protected java.util.Optional<java.lang.String> |
findMatchingNavigationPropertyIn(T type,
java.lang.String entityName)
Looks for a certain attribute of typeCode in type.
|
java.lang.String |
generate(T integrationObjectItemModel,
E entry)
Generates a string representing the actual string values that the
s:Alias
property references. |
protected IntegrationKeyMetadataGenerator |
getIntegrationKeyMetadataGenerator() |
protected java.lang.Object |
getProperty(E entry,
java.lang.String propertyName)
Given an entry, it returns a property value.
|
protected java.lang.String |
getTypeCode(T type)
Given a type, it returns its code representation.
|
protected void |
populateKeyValueFromNavigationProperty(T type,
E entry,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> aliasComponents,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> integrationKeyValues,
java.lang.String propertyName) |
void |
setIntegrationKeyMetadataGenerator(IntegrationKeyMetadataGenerator integrationKeyMetadataGenerator) |
protected java.lang.String |
transformValueToString(java.lang.Object attributeValue)
Implementations should transform a value into string representation.
|
addToKeyReferenceMap, addToKeyValues, calcKeyInternal, encodeValue, entitySimpleKeys, extractKeyPropertyReferencesFromAlias, getEncoding, populateKeyValueFromSimpleProperty, setEncoding, setKeyValuesToStringpublic java.lang.String generate(T integrationObjectItemModel, E entry)
IntegrationKeyGenerators:Alias
property references.integrationObjectItemModel - - EntitySet that is being posted toentry - - represents the entry information to be used to generate the key.protected java.util.Optional<java.lang.String> findMatchingNavigationPropertyIn(T type, java.lang.String entityName)
AbstractIntegrationKeyGeneratorfindMatchingNavigationPropertyIn in class AbstractIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>>type - The type to be used.entityName - The typeCode to look for.protected void populateKeyValueFromNavigationProperty(T type, E entry, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> aliasComponents, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> integrationKeyValues, java.lang.String propertyName)
populateKeyValueFromNavigationProperty in class AbstractIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>>protected void addToKeyValueMap(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> integrationKeyValues,
T type,
E entry,
java.lang.String propertyName)
addToKeyValueMap in class AbstractIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>>protected java.lang.String getTypeCode(T type)
AbstractIntegrationKeyGeneratorgetTypeCode in class AbstractIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>>type - The type to be used.protected java.lang.Object getProperty(E entry, java.lang.String propertyName)
AbstractIntegrationKeyGeneratorgetProperty in class AbstractIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>>entry - The entry to be used.propertyName - The propertyName to look for.protected java.lang.String transformValueToString(java.lang.Object attributeValue)
AbstractIntegrationKeyGeneratortransformValueToString in class AbstractIntegrationKeyGenerator<T extends IntegrationObjectItemModel,E extends java.util.Map<java.lang.String,java.lang.Object>>attributeValue - the value to be converted.public void setIntegrationKeyMetadataGenerator(IntegrationKeyMetadataGenerator integrationKeyMetadataGenerator)
protected IntegrationKeyMetadataGenerator getIntegrationKeyMetadataGenerator()
Copyright © 2018 SAP SE. All Rights Reserved.