Class AbstractIntegrationKeyValueGenerator<T,E>
- java.lang.Object
-
- de.hybris.platform.integrationservices.integrationkey.impl.AbstractIntegrationKeyValueGenerator<T,E>
-
- All Implemented Interfaces:
IntegrationKeyValueGenerator<T,E>
- Direct Known Subclasses:
DefaultMapToIntegrationKeyValueGenerator,DefaultODataEntryToIntegrationKeyValueGenerator
public abstract class AbstractIntegrationKeyValueGenerator<T,E> extends java.lang.Object implements IntegrationKeyValueGenerator<T,E>
-
-
Constructor Summary
Constructors Constructor Description AbstractIntegrationKeyValueGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildIntegrationKeyValueMatchingAliasOrder(IntegrationKeyValue keyValue, IntegrationKeyAlias alias)protected java.lang.StringencodeValue(java.lang.String value)protected java.lang.StringentitySimpleKeys(java.util.List<java.lang.String> keyValues)protected java.lang.StringgetEncoding()protected abstract java.lang.ObjectgetProperty(E entry, java.lang.String propertyName)Given an entry, it returns a property value.protected abstract java.lang.StringgetTypeCode(T type)Given a type, it returns its code representation.protected java.lang.StringserializeKeyToString(KeyValue key)voidsetEncoding(java.lang.String encoding)protected abstract java.lang.StringtransformValueToString(java.lang.Object attributeValue)Implementations should transform a value into string representation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.integrationservices.integrationkey.IntegrationKeyValueGenerator
generate
-
-
-
-
Method Detail
-
encodeValue
protected java.lang.String encodeValue(java.lang.String value)
-
getTypeCode
protected abstract java.lang.String getTypeCode(T type)
Given a type, it returns its code representation.- Parameters:
type- The type to be used.- Returns:
- The type code.
-
getProperty
protected abstract java.lang.Object getProperty(E entry, java.lang.String propertyName)
Given an entry, it returns a property value.- Parameters:
entry- The entry to be used.propertyName- The propertyName to look for.- Returns:
- The value related to propertyName.
-
buildIntegrationKeyValueMatchingAliasOrder
protected java.lang.String buildIntegrationKeyValueMatchingAliasOrder(IntegrationKeyValue keyValue, IntegrationKeyAlias alias)
-
serializeKeyToString
protected java.lang.String serializeKeyToString(KeyValue key)
-
entitySimpleKeys
protected java.lang.String entitySimpleKeys(java.util.List<java.lang.String> keyValues)
-
transformValueToString
protected abstract java.lang.String transformValueToString(java.lang.Object attributeValue)
Implementations should transform a value into string representation. For instance Date.- Parameters:
attributeValue- the value to be converted.- Returns:
- The string representation
-
getEncoding
protected java.lang.String getEncoding()
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
-