Class ItemKeyDescriptor
java.lang.Object
de.hybris.platform.integrationservices.model.impl.ItemKeyDescriptor
- All Implemented Interfaces:
KeyDescriptor
A primary key descriptor for a complex item type.
-
Method Summary
Modifier and TypeMethodDescriptioncalculateKey(Map<String, Object> item) Calculates key value for the specified data item.Finds all key attributes for the descriptor, including key attributes for the descriptor and all of its referenced key attributesbooleanisKeyAttribute(String attr) Queries whether the specified attribute name is a name of the key attribute.
-
Method Details
-
calculateKey
Description copied from interface:KeyDescriptorCalculates key value for the specified data item.- Specified by:
calculateKeyin interfaceKeyDescriptor- Parameters:
item- Map presentation of a data item, for which the key value needs to be calculated.- Returns:
- the calculated key value.
-
getKeyAttributes
Description copied from interface:KeyDescriptorFinds all key attributes for the descriptor, including key attributes for the descriptor and all of its referenced key attributes- Specified by:
getKeyAttributesin interfaceKeyDescriptor- Returns:
- a list of key attributes
-
isKeyAttribute
Description copied from interface:KeyDescriptorQueries whether the specified attribute name is a name of the key attribute.- Specified by:
isKeyAttributein interfaceKeyDescriptor- Parameters:
attr- name of the attribute to enquire about- Returns:
true, if the specified attribute is a key attribute in this key descriptor;falseotherwise.
-