Class ItemKeyDescriptor

java.lang.Object
de.hybris.platform.integrationservices.model.impl.ItemKeyDescriptor
All Implemented Interfaces:
KeyDescriptor

public final class ItemKeyDescriptor extends Object implements KeyDescriptor
A primary key descriptor for a complex item type.
  • Method Details

    • calculateKey

      public KeyValue calculateKey(Map<String,Object> item)
      Description copied from interface: KeyDescriptor
      Calculates key value for the specified data item.
      Specified by:
      calculateKey in interface KeyDescriptor
      Parameters:
      item - Map presentation of a data item, for which the key value needs to be calculated.
      Returns:
      the calculated key value.
    • getKeyAttributes

      public List<KeyAttribute> getKeyAttributes()
      Description copied from interface: KeyDescriptor
      Finds all key attributes for the descriptor, including key attributes for the descriptor and all of its referenced key attributes
      Specified by:
      getKeyAttributes in interface KeyDescriptor
      Returns:
      a list of key attributes
    • isKeyAttribute

      public boolean isKeyAttribute(String attr)
      Description copied from interface: KeyDescriptor
      Queries whether the specified attribute name is a name of the key attribute.
      Specified by:
      isKeyAttribute in interface KeyDescriptor
      Parameters:
      attr - name of the attribute to enquire about
      Returns:
      true, if the specified attribute is a key attribute in this key descriptor; false otherwise.